This function is a wrapper for the functions
mplusObject and
mplusModeler. Using this function requires
'Mplus' to be installed.
Arguments
- x
An object of class
tidy_sem.- ...
Additional parameters passed to
mplusObjectandmplusModeler. These arguments are matched to the correct function by name. The argumentsrdata, andMODELcannot be edited, as they are determined from thetidy_semobject.
Details
The arguments dataout, modelout, and run are
optional. If these are not specified, the model will be run in
tempdir.
Examples
library(MplusAutomation)
#> Version: 1.1.1
#> We work hard to write this free software. Please help us get credit by citing:
#>
#> Hallquist, M. N. & Wiley, J. F. (2018). MplusAutomation: An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus. Structural Equation Modeling, 25, 621-638. doi: 10.1080/10705511.2017.1402334.
#>
#> -- see citation("MplusAutomation").
model <- tidy_sem(iris, "\\.")
model <- measurement(model)
if (FALSE) { # \dontrun{
estimate_mplus(model, run = 0L)
} # }