- k
Number of replications desired.
- k.start
Defaults to 1. Specifies the replication to start on.
Useful if the simulation stopped on a specific replication and resuming without loss of work.
- data_gen
Can take either a single dataframe in the 'folder' or a data
generation function. When it is a data generation function any arguments
for data generation should be specified in this function.
- seed
Seed defaults to 123 but can be any integer. This ensures every
replication's data is generated using a different seed but is reproducible.
- ncores
Defaults to the number of cores on the machine - 1.
- run
Logical. Defaults to T. When T the Mplus models will be run. When F models will not be run and the output files will be read in only.
- useCores
Logical. When TRUE, the mplus files will be adjusted to use
the number of cores on the machine. This can speed up simulation run times.
- cores_per_analysis
Applies when useCores is TRUE. Default is ncores/2.
If you experience issues or crashes due to memory or core use, set this lower.
In testing the default will use most of a computer's CPU power but no break the simulation.
- Par_plan
Plan for parallel processing. Defaults to 'cluster'. Can take any argument from the 'future' package
- rec
Logical. Indicates if the files are in subdirectories.
- results
Indicates which results to collect. Supports summaries, parameters,
and modindicies or any named list argument output by mplus automation. When using summaries, parameters, or modindicies
mnore specific output is available.
- multi_con
Logical. Indicates whether multiple conditions are run in a singular instance. Default is F.
- con_index
A character vector. Specifies the indices for conditions to be tracked.
- specific_sums
Extracts specific output when results is 'summaries'.
- specific_params
Extracts specific parameters when results is 'parameters'.
- item
Extracts specific items when results is 'parameters'.
- params_ext
When results is 'parameters', specifies parameter type for
extraction. Can take any type but defaults to 'unstandardized'.
If you do not desire unstandardized parameters read in an output file to
determine the name of the parameters of interest and use this as the named argument.
- modV1s
Used for specific output when results is 'mod_indicies'.
- ops
Operator for modV1s, e.g., 'BY' for factor loadings.
- modV2s
Second variable for modV1s.
- custom_auto
User-defined function for running and reading in models.
Only functions that return single dataframes each run are currently supported.
- retry
Logical. Defaults to TRUE. Retries with a new seed if chi is not
returned by the model.
- max_retry
Defaults to 5. Specifies how many times a new seed should
be attempted.
- folder
User-defined path to the root folder
of where your Mplus files are located.