View source: R/preanalysis_functions.r
runCFA | R Documentation |
runCFA
is a function for performing a one-factor confirmatory factor analysis (CFA) to test unidimensionality.
runCFA(data, estimator = "WLSMV", std.lv = TRUE, scalewise = FALSE, ...)
data |
a |
estimator |
the estimator to be used. Passed onto |
std.lv |
if |
scalewise |
if |
... |
additional arguments to pass onto |
runCFA
returns a list containing the CFA results.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.