esem_syntax: Create a model syntax for ESEM-with-CFA

View source: R/esem_syntax.R

esem_syntaxR 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.


esem documentation built on July 9, 2023, 6:42 p.m.