Last chance! 50% off unlimited learning
Sale ends in
coef
for most the work.extract.mplus.model(model, summaries = "none", ...)extract.mplusObject(model, summaries = "none", ...)
## S3 method for class 'mplus.model':
extract(model, summaries = "none", ...)
## S3 method for class 'mplusObject':
extract(model, summaries = "none", ...)
readModels
directly, or indirectly via
mplusModeler
. The results will have different classecoef.mplus.model
.texreg
object, or for multiple group models,
a list of texreg
objects.readModels
Other Mplus.Formatting: coef.mplus.model
,
coef.mplusObject
;
print.MplusRstructure
;
summary.mplusObject
# simple example of a model using builtin data
# demonstrates use
test <- mplusObject(
TITLE = "test the MplusAutomation Package;",
MODEL = "
mpg ON wt hp;
wt WITH hp;",
OUTPUT = "STANDARDIZED;",
usevariables = c("mpg", "wt", "hp"),
rdata = mtcars)
res <- mplusModeler(test, "mtcars.dat", modelout = "model1.inp", run = 1L)
extract(res$results)
# there is also a method for mplusObject class
extract(res)
screenreg(extract(res))
screenreg(extract(res, type = 'stdyx'))
screenreg(extract(res, type = 'un', params = 'regression'),
single.row=TRUE)
screenreg(extract(res, type = 'un', params = 'regression', summaries = 'CFI'),
single.row=TRUE)
# remove files
unlink("mtcars.dat")
unlink("model1.inp")
unlink("model1.out")
unlink("Mplus Run Models.log")
Run the code above in your browser using DataLab