runCFA {PROsetta} | R Documentation |
Run a confirmatory factor analysis
Description
runCFA
is a function for performing a one-factor confirmatory factor analysis (CFA) to test unidimensionality.
Usage
runCFA(data, estimator = "WLSMV", std.lv = TRUE, scalewise = FALSE, ...)
Arguments
data |
a |
estimator |
the estimator to be used. Passed onto |
std.lv |
if |
scalewise |
if |
... |
additional arguments to pass onto |
Value
runCFA
returns a list containing the CFA results.
Examples
out_cfa <- runCFA(data_asq, scalewise = TRUE)
lavaan::summary(out_cfa$`1` , fit.measures = TRUE, standardized = TRUE, estimates = FALSE)
lavaan::summary(out_cfa$`2` , fit.measures = TRUE, standardized = TRUE, estimates = FALSE)
lavaan::summary(out_cfa$`combined`, fit.measures = TRUE, standardized = TRUE, estimates = FALSE)
[Package PROsetta version 0.4.1 Index]