make_lavaan_code | R Documentation |
Generate lavaan code for Thurstonian IRT models
make_lavaan_code(data)
data |
An object of class |
A character string of lavaan code for a Thurstonian IRT model.
lambdas <- c(runif(6, 0.5, 1), runif(6, -1, -0.5))
sim_data <- sim_TIRT_data(
npersons = 100,
ntraits = 3,
nblocks_per_trait = 4,
gamma = 0,
lambda = lambdas,
Phi = diag(3)
)
cat(make_lavaan_code(sim_data))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.