Description Usage Arguments Examples
This function takes a data frame and a model string and runs the model in Mplus.
1 2 3 4 5 6 7 8 | irtree_fit_mplus(
object = NULL,
data = NULL,
link = c("logit", "probit"),
verbose = interactive(),
control = control_mplus(),
improper_okay = FALSE
)
|
object |
Object of class |
data |
Data frame containing containing one row per respondent and one
column per variable. The variable names must correspond to those used in
|
link |
String, passed to argument 'LINK' in Mplus. Specifies the link function. |
verbose |
Logical indicating whether output should be printed to the console. |
control |
List. The allowed elements of this list depend on the
|
improper_okay |
Logical indicating whether the model should also be fit
if it is not a proper IR-tree model. Set this only to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | run <- MplusAutomation::mplusAvailable() == 0
m1 <- "
IRT:
attitude BY Comfort, Work, Future, Benefit;
Class:
GRM
"
model1 <- irtree_model(m1)
data(Science, package = "mirt")
fit1 <- fit(model1, Science, engine = "mplus",
control = control_mplus(run = run))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.