k_model_fit {kfa} | R Documentation |
Extract model fit
Description
Model fit indices extracted from k-folds
Usage
k_model_fit(models, index = "default", by.fold = TRUE)
Arguments
models |
an object returned from |
index |
character; one or more fit indices to summarize in the report. Use |
by.fold |
Should each element in the returned lists be a fold (default) or a factor model? |
Value
list
of data.frames with average model fit for each factor model
Examples
data(example.kfa)
# customize fit indices to report
k_model_fit(example.kfa, index = c("chisq", "cfi", "rmsea", "srmr"))
# organize results by factor model rather than by fold
k_model_fit(example.kfa, by.fold = FALSE)
[Package kfa version 0.2.2 Index]