- model.syntax
lavaan/modsem syntax. Multilevel models can be specified
using level: 1 (or level: within) and level: 2
(or level: between) blocks, see the details and examples.
- data
dataset
- estimator
estimator argument passed to Mplus. Bayesian estimation is
available using estimator = "bayes", see the details.
- cluster
cluster argument passed to Mplus. Required for multilevel
models. For single level models it is used to compute standard errors
corrected for clustering (i.e., TYPE = COMPLEX).
- type
type argument passed to Mplus. If NULL (default) it is
chosen based on the model: "twolevel" for multilevel models, "complex"
if cluster is specified, and "general" otherwise. "random" is
added if the model contains interaction effects or random slopes.
- algorithm
algorithm argument passed to Mplus. If NULL (default)
it is set to "integration" for models with interaction effects (unless
estimator = "bayes"), otherwise it is left to Mplus.
- processors
processors argument passed to Mplus.
- integration
integration argument passed to Mplus. Only used if
algorithm = "integration".
- analysis.options
Additional options passed to the ANALYSIS command of
Mplus, as a named list (or character vector). E.g.,
list(BITERATIONS = "10000 (2000)", CHAINS = 4, BSEED = 123) for
estimator = "bayes".
- rcs
Should latent variable indicators be replaced with reliability-corrected
single item indicators instead? See relcorr_single_item.
Not available for multilevel models.
- rcs.choose
Which latent variables should get their indicators replaced with
reliability-corrected single items? It is passed to relcorr_single_item
as the choose argument.
- rcs.scale.corrected
Should reliability-corrected items be scale-corrected? If TRUE
reliability-corrected single items are corrected for differences in factor loadings between
the items. Default is TRUE.
- output.std
Should STANDARDIZED be added to OUTPUT? It is
ignored if Mplus doesn't support standardized estimates for the model
(e.g., TYPE = TWOLEVEL RANDOM with a frequentist estimator).
- categorical
categorical argument passed to Mplus.
- within
Variables which should be declared as WITHIN variables in
multilevel models. If NULL (default) all observed variables which only
appear in the within (level: 1) model are declared as WITHIN variables.
- between
Variables which should be declared as BETWEEN variables in
multilevel models. If NULL (default) all observed variables which only
appear in the between (level: 2) model are declared as BETWEEN variables.
- cleanup
Should the Mplus files (.inp, .dat and .out)
created during estimation be deleted when modsem_mplus() exits? Default is
FALSE, meaning the files are kept in the working directory.
- ...
arguments passed to other functions