| mplusModel_r6 | R Documentation |
An R6 class for a single Mplus model
Wrapped by mplusModel
model_dirthe directory for Mplus files corresponding to this model
inp_filethe location of the Mplus .inp file for this model
out_filethe location of the Mplus .out file for this model
dat_filethe location of the Mplus .dat (data) file for this model
datathe dataset used for estimating this model
Mplus_commandthe location of the Mplus program
syntaxthe Mplus syntax for this model as a character vector
inputRead-only accessor for the input section returned by readModels().
warningsRead-only accessor for the warnings section returned by readModels().
errorsRead-only accessor for the errors section returned by readModels().
data_summaryRead-only accessor for the data_summary section returned by readModels().
sampstatRead-only accessor for the sampstat section returned by readModels().
covariance_coverageRead-only accessor for the covariance_coverage section returned by readModels().
summariesRead-only accessor for the summaries section returned by readModels().
invariance_testingRead-only accessor for the invariance_testing section returned by readModels().
parametersRead-only accessor for the parameters section returned by readModels().
class_countsRead-only accessor for the class_counts section returned by readModels().
indirectRead-only accessor for the indirect section returned by readModels().
mod_indicesRead-only accessor for the mod_indices section returned by readModels().
residualsRead-only accessor for the residuals section returned by readModels().
savedataRead-only accessor for the savedata section returned by readModels().
savedata_infoRead-only accessor for the savedata_info section returned by readModels().
bparametersRead-only accessor for the bparameters section returned by readModels().
tech1Read-only accessor for the tech1 section returned by readModels().
tech3Read-only accessor for the tech3 section returned by readModels().
tech4Read-only accessor for the tech4 section returned by readModels().
tech7Read-only accessor for the tech7 section returned by readModels().
tech8Read-only accessor for the tech8 section returned by readModels().
tech9Read-only accessor for the tech9 section returned by readModels().
tech10Read-only accessor for the tech10 section returned by readModels().
tech12Read-only accessor for the tech12 section returned by readModels().
tech15Read-only accessor for the tech15 section returned by readModels().
fac_score_statsRead-only accessor for the fac_score_stats section returned by readModels().
lcCondMeansRead-only accessor for the lcCondMeans section returned by readModels().
r3stepRead-only accessor for the r3step section returned by readModels().
gh5Read-only accessor for the gh5 section returned by readModels().
h5resultsRead-only accessor for the h5results section returned by readModels().
outputRead-only accessor for the output section returned by readModels().
new()generate an mplusModel_r6 object
mplusModel_r6$new( syntax = NULL, data = NULL, inp_file = NULL, read = TRUE, Mplus_command = NULL )
syntaxa character vector of Mplus input syntax for this model
dataa data.frame to be used for estimating the model
inp_filethe location of .inp file for this model
readIf TRUE and the .out file already exists, read the contents of the .out file using readModels
Mplus_commandN.B.: No need to pass this parameter for most users (has intelligent defaults). Allows the user to specify the name/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.
read()read the results of an Mplus model from the .out file using readModels
mplusModel_r6$read(force = FALSE)
forceif TRUE, re-read the .out file even if was already previously loaded in to this object
write_dat()write the .inp and .dat files for this model to the intended location
mplusModel_r6$write_dat(overwrite = TRUE, quiet = FALSE, ...)
overwriteif TRUE, overwrite existing data. Default: TRUE.
quietif TRUE, do not produce messages about the outcome of this command (e.g., a message about overwriting existing data)
...additional arguments passed to prepareMplusData
write_inp()write the .inp and .dat files for this model to the intended location
mplusModel_r6$write_inp(overwrite = TRUE, inp_file = NULL, quiet = FALSE)
overwriteif TRUE, overwrite existing data. Default: TRUE.
inp_fileThe location of the input file to write. If NULL (default), use the $inp_file of this object.
quietif TRUE, do not produce messages about the outcome of this command (e.g., a message about overwriting existing data)
submit()submit this model for estimation on an HPC using submitModels
mplusModel_r6$submit(replaceOutfile = "modifiedDate", ...)
replaceOutfileCurrently 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 runs a model if the modified date for the input file is more recent than the output file modified date (implying there have been updates to the model).
...additional arguments passed to submitModels
run()run this model locally using runModels. The method detects
changes in the data and input syntax and only rewrites the corresponding
files when updates are detected.
mplusModel_r6$run(replaceOutfile = "modifiedDate", ...)
replaceOutfileCurrently 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 runs a model if the modified date for the input file is more recent than the output file modified date (implying there have been updates to the model).
...additional arguments passed to runModels
clone()The objects of this class are cloneable with this method.
mplusModel_r6$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.