stratifiedMI | R Documentation |
Run clustered measurement invariance tests
stratifiedMI(
model,
group,
data,
strata,
parameters = c("loadings", "intercepts"),
ref = "configural",
...
)
model |
character, lavaan syntax model |
group |
character, grouping variable |
data |
data frame |
strata |
A list of character vectors of the group names to create strata. |
parameters |
character vector, "all", "loadings", "thresholds", or "intercepts". strata are applied to this subset of parameters. |
This function builds a single model with constraints applied to subsets of groups, and compares it to the reference model (less constrained) as well as to global invariance tests.
stratifiedMI("F =~ v1 + v2 + v3 + v4",
group = "country",
data = Dat1,
strata = list(North = c("Norway", "Denmark", "Finland"),
South = c("Spain", "Portugal", "Italy")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.