cfa_two_factors_mg | R Documentation |
Generated from a two-factor model with six variables, n = 500, two groups, n = 250 each.
cfa_two_factors_mg
A data frame with 500 rows, one grouping variable, gp
,
six variables, x1
to x6
.
This model is used for examples like this one:
library(lavaan) mod <- "f1 =~ x1 + x2 + x3 f2 =~ x4 + x5 + x6" fit <- cfa(mod, cfa_two_factors_mg, group = "gp") summary(fit)
print(head(cfa_two_factors_mg), digits = 3)
nrow(cfa_two_factors_mg)
table(cfa_two_factors_mg$gp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.