← All papers
First page of Asymptotic calibration of projected residual processes in multilevel linear mixed models

Asymptotic calibration of projected residual processes in multilevel linear mixed models

Jakob Peterlin

stat.ME Nov 30, 2026 · v1
All numbered theorems and propositions on residual-process calibration are formalised in Lean 4 and kernel-checked; a Lean 4 project is supplied in the supplement.
{A cumulative residual test checks a fitted regression model: residuals are added up in the order of a fitted prediction, and their path is compared with paths simulated under the model. A path that stands out indicates lack of fit and shows where it occurs. For linear mixed models the large-sample theory covers one grouping factor and simulates by perturbing independent groups. With nested or crossed factors such groups may be few or absent. We therefore project residuals off all fixed and random design columns, and order the observations by the fixed prediction alone or with predicted random effects added. The ordering determines what a test can detect and what its calibration requires. Along the fixed prediction the test is sensitive to the mean; for smooth weights and under conditions on design and fit, it is valid for independent errors, Gaussian or not, with simulated paths from fresh draws of any standardised law. In balanced designs with complete repeated profiles, one multiplier per profile keeps it valid for any covariance within a profile. Orderings that include random effects can reveal an omitted random slope; there we assume Gaussian errors, and Gaussian draws are valid in any design as the residual dimension grows. In simulations with nested and crossed factors, the tests rejected 4.2–5.7% of null samples at the 5% level; an omitted quadratic term was detected best along the fixed prediction and an omitted subject slope along the subject ordering. Crossed lexical-decision data illustrate the tests.}

Cumulative residual tests for linear mixed models have large-sample theory only for one grouping factor, where secondary paths are simulated by perturbing independent groups. With nested or crossed factors, independent groups may be few or absent, so that simulation scheme no longer works.

Residuals are projected off all fixed and random design columns. Observations are then ordered either by the fixed prediction alone or with predicted random effects added. Validity is established for three ways of generating secondary paths: fresh draws, rotations and unit multipliers, each under conditions on errors and design. The proofs of every numbered statement are formalised in Lean 4 and checked by the Lean kernel.

The fixed-prediction test is valid under independent non-Gaussian errors with fresh draws from any standardised law. Random-effect orderings are valid under Gaussian errors and can detect omitted random slopes. In simulations with nested and crossed factors, the tests rejected 4.2–5.7% of null samples at the 5% level.

DesignCurvatureFresh GaussianFresh SignsFresh MammenUnit SignsUnit Gaussian
Nested05.555.955.505.755.70
Crossed04.954.654.854.003.65
Nested0.0434.8034.3534.7032.7032.35
Crossed0.0433.3033.4033.2033.1532.25
Rejections (%) at nominal 5% in 2000 samples per row, with B=199 secondary processes per test