esem_syntax {esem}R Documentation

Create a model syntax for ESEM-with-CFA

Description

Create a model syntax for ESEM-with-CFA

Usage

esem_syntax(esem_efa_results, referent_list = NULL)

Arguments

esem_efa_results

is a psych::fa() object with the results of exploratory factor analysis (EFA) The object can be created using psych::fa() or a wrapper esem_efa() function

referent_list

is a list with latent variables (factors) and their corresponding referent items. referent_list can be generated using create_referent() function. If no referent_list is provided, the list is generated automatically

Value

A character vector with a lavaan syntax for the ESEM model.


[Package esem version 2.0.0 Index]