mplus.run | R Documentation |
This function runs a group of Mplus models (.inp
files) located within
a single directory or nested within subdirectories.
mplus.run(target = getwd(), recursive = FALSE, filefilter = NULL, show.out = FALSE,
replace.out = c("always", "never", "modified"), message = TRUE,
logFile = NULL, Mplus = detect.mplus(), killOnFail = TRUE,
local_tmpdir = FALSE)
target |
a character string indicating the directory containing
Mplus input files ( |
recursive |
logical: if |
filefilter |
a Perl regular expression (PCRE-compatible) specifying particular input files to be run within directory. See regex or http://www.pcre.org/pcre.txt for details about regular expression syntax. Not relevant if target is a single file. |
show.out |
logical: if |
replace.out |
a character string for specifying three settings:
|
message |
logical: if |
logFile |
a character string specifying a file that records the settings passed into the function and the models run (or skipped) during the run. |
Mplus |
a character string for specifying the name or path of the Mplus executable to be used for running models. This covers situations where Mplus is not in the system's path, or where one wants to test different versions of the Mplus program. Note that there is no need to specify this argument for most users since it has intelligent defaults. |
killOnFail |
logical: if |
local_tmpdir |
logical: if |
None.
This function is a copy of the runModels()
function in the
MplusAutomation package by Michael Hallquist and Joshua Wiley (2018).
Michael Hallquist and Joshua Wiley
Hallquist, M. N. & Wiley, J. F. (2018). MplusAutomation: An R package for facilitating large-scale latent variable analyses in Mplus. Structural Equation Modeling: A Multidisciplinary Journal, 25, 621-638. https://doi.org/10.1080/10705511.2017.1402334.
Muthen, L. K., & Muthen, B. O. (1998-2017). Mplus User's Guide (8th ed.). Muthen & Muthen.
read.mplus
, write.mplus
, mplus
,
mplus.update
, mplus.print
, mplus.plot
,
mplus.bayes
, mplus.lca
## Not run:
# Example 1: Run Mplus models located within a single directory
mplus.run(Mplus = "C:/Program Files/Mplus/Mplus.exe")
# Example 2: Run Mplus models located nested within subdirectories
mplus.run(recursive = TRUE,
Mplus = "C:/Program Files/Mplus/Mplus.exe")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.