R. The object holds all the sections of an Mplus
input file, plus some extra R ones. Once created,
the model can be run using other functions such as
mplusModeler or updated using methods defined for
the update function.mplusObject(TITLE = NULL, DATA = NULL, VARIABLE = NULL,
DEFINE = NULL, ANALYSIS = NULL, MODEL = NULL,
OUTPUT = NULL, SAVEDATA = NULL, PLOT = NULL,
usevariables = NULL, rdata = NULL)R dataset to use in the model.R dataset to be used for the
model.mplusObject with elementsR data set to be used.R data set to use for the model.mplusModelerexample1 <- mplusObject(MODEL = "mpg ON wt;",
usevariables = c("mpg", "hp"), rdata = mtcars)
str(example1)
rm(example1)Run the code above in your browser using DataLab