| ewc_syntax | R Documentation |
Converts a fitted ESEM solution into explicit lavaan CFA syntax following
the ESEM-within-CFA approach (Marsh et al. 2014). The syntax uses
unstandardised ESEM loadings as starting values (start(v)*item) or
fixed values (v*item) depending on the referent scheme.
ewc_syntax(esem_fit, spec, referents = NULL, var_fixed = TRUE)
esem_fit |
An |
spec |
An |
referents |
Named character vector of referent items, one per factor.
Names = factor names; values = item names. If |
var_fixed |
Logical. Identification mode:
For a B-ESEM source the same two schemes apply to G and to every specific factor; all factor covariances stay fixed at zero in both. |
A character string of lavaan model syntax. Use cat() to
inspect, or pass directly to fit_ewc via
custom_syntax.
Marsh, H. W., Morin, A. J. S., Parker, P. D., & Kaur, G. (2014). Exploratory structural equation modeling. Annual Review of Clinical Psychology, 10, 85-110.
find_ewc_referents, fit_ewc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.