| generate_mplus_besem_syntax | R Documentation |
Generates the correct Mplus syntax for Bifactor ESEM with orthogonal target rotation, using separate BY statements per factor with (*1).
generate_mplus_besem_syntax(
specific_factors,
all_indicators,
g_name = "G",
cfa_factors = NULL,
regressions = NULL,
covariances = NULL,
data_file = "mydata.dat",
missing_code = 999,
output_path = NULL,
ordered = FALSE,
estimator = if (ordered) "WLSMV" else "MLR"
)
specific_factors |
Named list of specific factor -> item assignments. |
all_indicators |
Character vector of all ESEM indicator names. |
g_name |
Character. General factor name. Default |
cfa_factors |
Optional named list of additional CFA factors. |
regressions |
Optional character vector of regression statements. |
covariances |
Optional character vector of covariance statements. |
data_file |
Character. Data file name. Default |
missing_code |
Missing value code. Default |
output_path |
Character. Path to write .inp file. Returns syntax
invisibly if |
ordered |
Logical. |
estimator |
Character. Default |
Mplus syntax string (invisibly). Writes file if output_path
supplied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.