cfa_two_factors_mg {semlbci}R Documentation

Dataset (CFA, Two Factors, Six Variables, Two Groups)

Description

Generated from a two-factor model with six variables, n = 500, two groups, n = 250 each.

Usage

cfa_two_factors_mg

Format

A data frame with 500 rows, one grouping variable, gp, six variables, x1 to x6.

Details

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)

Examples


print(head(cfa_two_factors_mg), digits = 3)
nrow(cfa_two_factors_mg)
table(cfa_two_factors_mg$gp)


[Package semlbci version 0.11.2 Index]