Learn R Programming

MplusAutomation (version 0.2-5)

runModels: Run Mplus Models

Description

This function runs a group of Mplus models (.inp files) located within a single directory or nested within subdirectories.

Usage

runModels(directory = getwd(), recursive = FALSE, showOutput = FALSE, 
	replaceOutfile = "always", logFile = "Mplus Run Models.log")

Arguments

directory
the directory containing Mplus input files (.inp) to run. Defaults to the current working directory. Example: "C:/Users/Michael/Mplus Runs"
recursive
optional. If TRUE, run all models nested in subdirectories within directory. Defaults to FALSE.
showOutput
optional. If TRUE, show estimation output (TECH8) in the R console. Note that if run within Rgui, output will display within R, but if run via Rterm, a separate window will appear during estimation.
replaceOutfile
optional. Currently supports three settings: "always", which runs all models, regardless of whether an output file for the model exists; "never", which does not run any model that has an existing output file; and "modifiedDate", which only run
logFile
optional. If non-null, specifies a file (and optionally, directory) that records the settings passed into the function and the models run (or skipped) during the run.

Value

  • None. Function is used for its side effects (running models).

See Also

runModels_Interactive