Run clustered measurement invariance tests
Usage
stratifiedMI(
model,
group,
data,
strata,
parameters = c("loadings", "intercepts"),
ref = "configural",
...
)
Arguments
- 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.
Details
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.
Examples
if (FALSE) { # \dontrun{
stratifiedMI("F =~ v1 + v2 + v3 + v4",
group = "country",
data = Dat1,
strata = list(North = c("Norway", "Denmark", "Finland"),
South = c("Spain", "Portugal", "Italy")
)
)
} # }