write_efa: Write exploratory factor analysis syntax

View source: R/Syntax-Functions.R

write_efaR Documentation

Write exploratory factor analysis syntax

Description

Converts variable names to lavaan compatible exploratory factor analysis syntax

Usage

write_efa(nf, vnames)

Arguments

nf

integer; number of factors

vnames

character vector; names of variables to include in the efa

Value

character. Use cat() to best examine the returned syntax.

Examples

vnames <- paste("x", 1:10)
syntax <- write_efa(nf = 2, vnames = vnames)
cat(syntax)


kfa documentation built on March 18, 2022, 5:26 p.m.