Measurement Invariance in R (lavaan): Configural, Metric, Scalar

In short

Measurement invariance means a scale measures the same thing in every group you compare. In lavaan, fit nested multigroup CFAs: configural (same structure), metric (equal loadings), scalar (equal intercepts, required to compare means) and strict (equal residual variances). Per Chen (2007), with N > 300, a level holds if CFI drops less than .010 and RMSEA rises less than .015.

Measurement invariance is a concept that should be mandatory for any researcher who compares groups (men and women, different countries, experimental and control groups) using psychological questionnaires or scales. The idea is simple: before comparing the scores of two groups on a scale, you need to ensure that the scale is measuring the same thing in both groups. If the items of a depression questionnaire function differently in men than in women (for example, if the item about crying has a different meaning or factor loading depending on gender), the differences you find in total scores could be due to real differences in depression or simply to the fact that the instrument does not measure the same thing in both groups.

In health research the usual case is a questionnaire validated in one population and then used to compare groups: men and women, age groups, countries, or patients and the general population. If some items work differently across those groups, a difference in means can come from the questionnaire and not from the people. Testing invariance is how you rule that out before you compare.

Invariance testing starts from a configural model that already fits in each group. If you are not there yet, start with the guide to confirmatory factor analysis.

If you would rather not write the lavaan code by hand, the measurement invariance checker runs the four models (configural, metric, scalar and strict) and gives you the ΔCFI and ΔRMSEA at each step.

Invariance ladder · group A vs group B 1. Configural same model Structure ✓ λ free τ free ε free baseline χ² ref · CFI ref 2. Metric equal loadings Structure ✓ λ ≡ ✓ τ free ε free comparable |Δ CFI| < .010 3. Scalar + equal intercepts Structure ✓ λ ≡ ✓ τ ≡ ✓ ε free means comparable |Δ CFI| < .010 4. Strict + errors Structure ✓ λ ≡ ✓ τ ≡ ✓ ε ≡ ✓ rarely required λ = factor loadings · τ = intercepts · ε = residual variances · ≡ = constrained equal across groups Chen (2007), N > 300: invariance rejected if CFI drops ≥ .010 or RMSEA rises ≥ .015
Four levels of invariance, each adds one constraint to the previous one. Scalar invariance is enough to compare group means. Strict invariance is rarely required outside advanced psychometrics.

The four levels of invariance

You test invariance with a sequence of multigroup CFA models. Each model adds equality constraints to the one before it, and you move to the next level only if the previous one holds.

LevelEqual across groupsWhat it lets you compare
ConfiguralThe number of factors and the pattern of loadings. All parameters are free.Nothing yet. It is the baseline for the other models.
Metric (weak)Factor loadingsCorrelations and regression coefficients between groups
Scalar (strong)Loadings and item interceptsLatent means, and in practice observed total scores
StrictLoadings, intercepts and residual variancesObserved scores with the same reliability in every group

If the configural model fits badly, the groups do not share the same structure and the rest of the sequence makes no sense. Scalar invariance is the level most papers need, because almost every group comparison is a comparison of means. Without it, a difference in means can come from items with different intercepts in each group (differential item functioning) and not from a real difference in the construct. Strict invariance is rarely required.

Measurement invariance in lavaan step by step

Fit the four models with cfa() and its group and group.equal arguments (Rosseel, 2012). This example uses a one-factor scale with six items, a data frame d and a grouping variable sex:

library(lavaan)

model <- 'dep =~ i1 + i2 + i3 + i4 + i5 + i6'

configural <- cfa(model, data = d, group = "sex")
metric     <- cfa(model, data = d, group = "sex",
                  group.equal = "loadings")
scalar     <- cfa(model, data = d, group = "sex",
                  group.equal = c("loadings", "intercepts"))
strict     <- cfa(model, data = d, group = "sex",
                  group.equal = c("loadings", "intercepts", "residuals"))

lavTestLRT(configural, metric, scalar, strict)

fits <- sapply(list(configural, metric, scalar, strict),
               fitMeasures, c("cfi", "rmsea", "srmr"))
round(fits, 3)

lavTestLRT() gives the chi-square difference test between consecutive models. The fits table gives the CFI, RMSEA and SRMR of each model, one column per model, so you can read the change at each step.

Many tutorials still use measurementInvariance() from semTools. That function was deprecated in 2022 and current versions of semTools no longer include it, so old code fails. Its replacement is measEq.syntax(), which writes the lavaan syntax for each level and also covers ordinal items and longitudinal designs.

ΔCFI and ΔRMSEA cutoffs

With large samples the chi-square difference test rejects invariance for trivial differences. That is why most papers judge each step by the change in approximate fit indices. These are the cutoffs you will see cited:

SourceThe level holds ifDesigned for
Cheung and Rensvold (2002)CFI drops by .01 or lessTwo groups. The most cited rule.
Chen (2007)CFI drops by .010 or less and RMSEA rises by .015 or less. For the metric step, SRMR rises by .030 or less.Adequate power and equal group sizes
Rutkowski and Svetina (2014)CFI drops by .02 or less and RMSEA rises by .03 or less, for the metric stepMany groups (10 or 20), as in international surveys
Meade et al. (2008)CFI drops by .002 or lessA stricter option. The authors advise against it when power is low.

The summary of these rules and their conditions is in Putnick and Bornstein (2016). Choose the rule before you see the results and name it in the Method section. Report the fit of every model and the change between them, not only whether each level passed. The guide on how to report measurement invariance in APA 7 has the table and the wording.

Partial invariance

Full scalar invariance often fails. Partial invariance means freeing the intercepts (or loadings) of the items that differ and keeping the rest equal. Byrne, Shavelson and Muthén (1989) argued that group comparisons remain valid if at least two indicators per factor stay invariant. In lavaan you free a parameter with group.partial:

scalar_p <- cfa(model, data = d, group = "sex",
                group.equal = c("loadings", "intercepts"),
                group.partial = c("i4 ~ 1"))

Free as few parameters as you can, one at a time, and give a reason for each one: the wording of the item, a symptom that is expressed differently in each group, or a modification index that points to it. A partial model with several intercepts freed and no explanation is one of the first things a reviewer will question.

Ordinal items

Items with four or five response options are often better treated as ordinal, with the WLSMV estimator. The intercepts are then replaced by thresholds, and the way the models are identified changes. Wu and Estabrook (2016) showed that with ordinal items some of the usual models cannot be told apart and proposed testing the thresholds before the loadings. measEq.syntax() follows their proposal by default.

When a reviewer will ask for it

If your paper compares groups on a questionnaire score, or if you are validating a health questionnaire for a new population, expect the question. In the questionnaire validation service I run the CFA, the invariance sequence and any partial models with your data, and you get the tables and the syntax.

Before you submit: if your paper compares groups, sooner or later a reviewer will ask whether the scale measures the same thing in all of them. Run the manuscript through Previum first. It is a separate pre-review tool, free for the basic review, that flags this type of objection (means compared without testing scalar invariance, a partial model with constraints released and no justification, a ΔCFI you report but never interpret) before an editor raises it.

References

Byrne, B. M., Shavelson, R. J., & Muthén, B. (1989). Testing for the equivalence of factor covariance and mean structures: The issue of partial measurement invariance. Psychological Bulletin, 105(3), 456–466. https://doi.org/10.1037/0033-2909.105.3.456

Chen, F. F. (2007). Sensitivity of goodness of fit indexes to lack of measurement invariance. Structural Equation Modeling, 14(3), 464–504. https://doi.org/10.1080/10705510701301834

Cheung, G. W., & Rensvold, R. B. (2002). Evaluating goodness-of-fit indexes for testing measurement invariance. Structural Equation Modeling, 9(2), 233–255. https://doi.org/10.1207/S15328007SEM0902_5

Meade, A. W., Johnson, E. C., & Braddy, P. W. (2008). Power and sensitivity of alternative fit indices in tests of measurement invariance. Journal of Applied Psychology, 93(3), 568–592. https://doi.org/10.1037/0021-9010.93.3.568

Putnick, D. L., & Bornstein, M. H. (2016). Measurement invariance conventions and reporting: The state of the art and future directions for psychological research. Developmental Review, 41, 71–90. https://doi.org/10.1016/j.dr.2016.06.004

Rosseel, Y. (2012). lavaan: An R package for structural equation modeling. Journal of Statistical Software, 48(2), 1–36. https://doi.org/10.18637/jss.v048.i02

Rutkowski, L., & Svetina, D. (2014). Assessing the hypothesis of measurement invariance in the context of large-scale international surveys. Educational and Psychological Measurement, 74(1), 31–57. https://doi.org/10.1177/0013164413498257

Wu, H., & Estabrook, R. (2016). Identification of confirmatory factor analysis models of different levels of invariance for ordered categorical outcomes. Psychometrika, 81(4), 1014–1045. https://doi.org/10.1007/s11336-016-9506-0

Cite this guide

Ciudad-Fernández, V. (2026, February 13). Measurement Invariance in R (lavaan): Configural, Metric, Scalar. Ciudad Science. https://analisisdedatospsicologia.com/en/blog/measurement-invariance

Keep reading

All blog articles