A toy dataset containing measures on 6 items (y1-y6), 3 within-level covariates (x1-x3) and 2 between-level covariates (w1-w2). The data is clustered (200 clusters of size 5, 10, 15 and 20), and the cluster variable is “cluster”.
A data frame of 2500 observations of 12 variables. clusters.
within-level covariate 1
within-level covariate 2
within-level covariate 3
between-level covariate 1
between-level covariate 2
head(Demo.twolevel) model <- ' level: 1 fw =~ y1 + y2 + y3 fw ~ x1 + x2 + x3 level: 2 fb =~ y1 + y2 + y3 fb ~ w1 + w2 ' fit <- sem(model, data = Demo.twolevel, cluster = "cluster") summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.