stratifiedMI: Run clustered measurement invariance tests

View source: R/helpers.R

stratifiedMIR Documentation

Run clustered measurement invariance tests

Description

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

stratifiedMI("F =~ v1 + v2 + v3 + v4", 
         group = "country", 
         data = Dat1, 
         strata = list(North = c("Norway", "Denmark", "Finland"), 
                         South = c("Spain", "Portugal", "Italy")
                         )
          )


MaksimRudnev/MIE.package documentation built on March 5, 2024, 1:24 p.m.