write_efa {kfa} | R 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)
[Package kfa version 0.2.2 Index]