make_mplus_code | R Documentation |
Generate Mplus code for Thurstonian IRT models
make_mplus_code(data, iter = 1000, eta_file = "eta.csv")
data |
An object of class |
iter |
Maximum number of iterations of the model fitting algorithm. |
eta_file |
optional file name in which predicted trait scores should be stored. |
A list of Mplus code snippets to be interpreted by the MplusAutomation package.
sim_data <- sim_TIRT_data(
npersons = 100,
ntraits = 3,
nblocks_per_trait = 4,
gamma = 0,
lambda = c(runif(6, 0.5, 1), runif(6, -1, -0.5)),
Phi = diag(3)
)
# show the created Mplus code
lapply(make_mplus_code(sim_data), cat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.