esem_cfa {esem}R Documentation

Confirmatory factor anaysis (CFA) step for ESEM-with-CFA

Description

is a wrapper for lavaan::cfa() function

Usage

esem_cfa(model, data, mimic = c("MPlus"), std.lv = TRUE, ordered = TRUE)

Arguments

model

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

data

is a raw data matrix.

mimic

allows to mimic the final output results (i.e. CFA stage) to MPLUS to allow the user to compare the output.

std.lv

is set to TRUE by default to provide standardized latent variables.

ordered

is set to TRUE by default to allow the use of categorical variables.

Value

An object of class lavaan::lavaan-class, for which several methods are available, including a summary method.


[Package esem version 2.0.0 Index]