prepare_for_plots_crm.Rd
This is a utility function to make a dataframe from the continuous IRTmodel, which makes it easier to plot the surfaces
prepare_for_plots_crm(mod, thetarange = c(-6, 6))
IRT model, either from function cirtmodel
or the R
package EstCRM
.
The range for theta
, default from -6 to 6.
Dataframe with output probabilities from the IRT model for all algorithms.
data(classification_cts)
mod <- cirtmodel(classification_cts)
#> Warning: NaNs produced
dat <- prepare_for_plots_crm(mod$model)
head(dat)
#> theta z pdf Algorithm
#> 1 -6.0 -6 0.13788683 NB
#> 2 -5.9 -6 0.11739606 NB
#> 3 -5.8 -6 0.09890093 NB
#> 4 -5.7 -6 0.08244480 NB
#> 5 -5.6 -6 0.06800523 NB
#> 6 -5.5 -6 0.05550568 NB