View source: R/cfa_groupwise.R
cfa_groupwise | R Documentation |
This function will run N number of CFA where N = length(group)
, and report the fit measures of CFA in each group.
The function is intended to help you get a better understanding of which group has abnormal fit indicator
cfa_groupwise(data, ..., group, model = NULL, ordered = FALSE)
All argument must be explicitly specified. If not, all arguments will be treated as CFA items
a data.frame
with group-wise CFA result
# The example is used as the illustration of the function output only.
# It does not imply the data is appropriate for the analysis.
cfa_groupwise(
data = lavaan::HolzingerSwineford1939,
group = "school",
x1:x3,
x4:x6,
x7:x9
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.