A Monte Carlo Simulation to Assess Measurement Invariance in Moderated Nonlinear Factor Analysis and SEM Trees
Measurement invariance (MI) is a prerequisite for meaningful comparisons of latent constructs across groups (Cheung and Rensvold 2000; Meredith 1964).
Violations of MI imply that observed group differences may reflect measurement artifacts rather than substantive differences in the underlying constructs (Putnick and Bornstein 2016).
Without MI, conclusions about group differences in means, variances, or relations are not statistically justified (Putnick and Bornstein 2016).
In empirical practice, MI is often assumed rather than systematically evaluated.
Common practice
Reporting quality
Recent re-analyses indicate that only 26% of tested models achieved scalar invariance, while MI failed completely in 58% of cases; in roughly 50% of configural failures, the underlying factor structure differed between groups (Maassen et al. 2025).
The validity of many reported group comparisons therefore remains unclear.
Moderated Nonlinear Factor Analysis (MNLFA) extends traditional factor models by allowing measurement and latent-variable parameters to vary continuously as functions of observed covariates (Kolbe et al. 2024; Curran et al. 2014).
In this framework, measurement invariance is conceptualized as the moderation of model parameters by an external variable.
Parameters that may vary
Moderators
MNLFA therefore models measurement noninvariance directly, rather than evaluating it only through sequential group-based tests (Kolbe, Jorgensen, and Molenaar 2021; Curran et al. 2014).
Advantages
Limitations
MNLFA is most appropriate when theory suggests systematic moderation of measurement parameters.
Structural Equation Model (SEM) Trees combine confirmatory structural equation modeling with recursive partitioning to detect parameter heterogeneity across subgroups (Brandmaier et al. 2013, 2016; Arnold, Voelkle, and Brandmaier 2021).
SEM Trees identify subgroups in which model parameters differ by recursively splitting the sample based on covariates.
Core mechanism
What is detected
SEM Trees are particularly useful when relevant grouping variables are unknown, continuous, or high-dimensional.
Advantages
Limitations
SEM Trees trade parametric efficiency for flexibility and are most informative in exploratory or misspecified settings.
MNLFA and SEM Trees represent fundamentally different approaches to detecting measurement noninvariance.
MNLFA
SEM Trees
The relative performance of both approaches depends on the alignment between the data-generating process and the assumptions of the analysis model.
A Monte Carlo simulation is conducted to compare MNLFA and SEM Trees under varying forms of measurement noninvariance.
Design features
Indicator structure
Single-factor model
\[ \begin{aligned} \mathbf{x} &= \boldsymbol{\nu}(Z) + \boldsymbol{\Lambda}_x(Z)\,\eta + \boldsymbol{\varepsilon}, \\ \boldsymbol{\varepsilon} &\sim \mathcal{N}(\mathbf{0}, \boldsymbol{\Theta}_\varepsilon) \end{aligned} \]
Two-factor model
\[ \mathbf{x} = \boldsymbol{\nu}_x(Z) + \boldsymbol{\Lambda}_x(Z)\,\eta_1 + \boldsymbol{\varepsilon}(Z) \]
\[ \mathbf{y} = \boldsymbol{\nu}_y(Z) + \boldsymbol{\Lambda}_y(Z)\,\eta_2 + \boldsymbol{\delta}(Z) \]
Let \(M \sim \mathcal{U}(-1,1)\) denote a bounded continuous covariate.
Moderation is introduced via transformations of \(M\):
Linear
\[ h_1(M) = M \]
Quadratic
\[ h_2(M) = 2M^2 - 1 \]
Sigmoid
\[ h_3(M) = a + \frac{b-a}{1 + \exp\!\bigl(-k(M-c)\bigr)} \]
Noise
No systematic relationship with model parameters.
Each transformed variable enters the model as a separate moderator, allowing controlled variation in the functional form of parameter moderation.
Analytical Model Study 1
Highlighted components indicate parameters subject to moderation. Analysis is conducted sequentially.
Study 1 examines the impact of functional-form misspecification under controlled data-generating conditions without structural misspecification.
Data-generating process
Analysis and sampling
Functional-form misspecification arises when nonlinear data-generating mechanisms are analyzed under linear moderation assumptions in MNLFA, while SEM Trees impose no parametric form.
The pilot isolates a simple single-factor setting in order to assess initial type I error and power patterns before scaling the full simulation design.
Measurement model
Single-factor CFA with one latent factor \(\eta\) and four indicators \(y_1\)–\(y_4\)
Moderation structure
Functional forms
Baseline parameters
Population conditions
Trial-run settings
SEM Trees (nonparametric)
Model - Single-factor CFA (RAM specification)
Predictors
Estimation procedure
Evaluation
MNLFA (parametric)
Model - Moderation via definition variables (OpenMx) - Loadings: \(\Lambda(Z)\)
- Intercepts: \(\nu(Z)\)
Estimation procedure
Evaluation
Key assumption
Overall Results
| Level | Method | Type | Value |
|---|---|---|---|
| Metric | MNLFA | Power | 0.619 |
| Metric | MNLFA | Type I | 0.138 |
| Metric | SEMTREE | Power | 0.611 |
| Metric | SEMTREE | Type I | 0.075 |
| Scalar | MNLFA | Power | 0.459 |
| Scalar | MNLFA | Type I | 0.150 |
| Scalar | SEMTREE | Power | 0.683 |
| Scalar | SEMTREE | Type I | 0.050 |
MNLFA shows elevated Type I error, whereas SEM Trees provide better error control and stronger scalar-level power under these pilot conditions.
At the metric stage, MNLFA Type I error decreases, reaching 0.050 only when both sample size and reliability are high, whereas SEM Trees remain comparatively stable. At the scalar stage, SEM Trees retain high power under quadratic moderation, while MNLFA power drops markedly.

Type I Error and Power Metric Stage
| N | Reliability | Moderator | MNLFA Type I | MNLFA Power | SEMTREE Type I | SEMTREE Power |
|---|---|---|---|---|---|---|
| 300 | 0.60 | linear | 0.200 | 1.000 | 0.050 | 0.988 |
| 300 | 0.60 | noise | 0.200 | 0.200 | 0.050 | 0.050 |
| 300 | 0.60 | quadratic | 0.200 | 0.740 | 0.050 | 0.575 |
| 300 | 0.95 | linear | 0.150 | 1.000 | 0.050 | 1.000 |
| 300 | 0.95 | noise | 0.150 | 0.150 | 0.050 | 0.050 |
| 300 | 0.95 | quadratic | 0.150 | 0.755 | 0.050 | 0.750 |
| 1000 | 0.60 | linear | 0.150 | 1.000 | 0.100 | 1.000 |
| 1000 | 0.60 | noise | 0.150 | 0.150 | 0.100 | 0.100 |
| 1000 | 0.60 | quadratic | 0.150 | 0.862 | 0.100 | 0.725 |
| 1000 | 0.95 | linear | 0.050 | 1.000 | 0.100 | 1.000 |
| 1000 | 0.95 | noise | 0.050 | 0.050 | 0.100 | 0.100 |
| 1000 | 0.95 | quadratic | 0.050 | 0.792 | 0.100 | 1.000 |
Type I Error and Power Scalar Stage
| N | Reliability | Moderator | MNLFA Type I | MNLFA Power | SEMTREE Type I | SEMTREE Power |
|---|---|---|---|---|---|---|
| 300 | 0.60 | linear | 0.100 | 1.000 | 0.100 | 1.000 |
| 300 | 0.60 | noise | 0.100 | 0.100 | 0.100 | 0.100 |
| 300 | 0.60 | quadratic | 0.100 | 0.273 | 0.100 | 1.000 |
| 300 | 0.95 | linear | 0.100 | 1.000 | 0.100 | 1.000 |
| 300 | 0.95 | noise | 0.100 | 0.100 | 0.100 | 0.100 |
| 300 | 0.95 | quadratic | 0.100 | 0.245 | 0.100 | 1.000 |
| 1000 | 0.60 | linear | 0.200 | 1.000 | 0.000 | 1.000 |
| 1000 | 0.60 | noise | 0.200 | 0.200 | 0.000 | 0.000 |
| 1000 | 0.60 | quadratic | 0.200 | 0.175 | 0.000 | 1.000 |
| 1000 | 0.95 | linear | 0.200 | 1.000 | 0.000 | 1.000 |
| 1000 | 0.95 | noise | 0.200 | 0.200 | 0.000 | 0.000 |
| 1000 | 0.95 | quadratic | 0.200 | 0.417 | 0.000 | 1.000 |
MNLFA is efficient under correct specification but sensitive to misspecification, whereas SEM Trees provide more robust error control at the cost of potential conservatism.