Tutorials › Statistical Genetics › Misspecification and Calibration in LMM Association

Linear Mixed Models in Genetics · Tutorial 515 of 989

Misspecification and Calibration in LMM Association

Learn to recognize when a genetic mixed-model association test gives misleading null p-values and how to investigate the source.

Intermediate 12 min read

What You'll Learn

  • Define fixed-effect test calibration under the null hypothesis.
  • Derive how a misspecified covariance changes the variance of a genetic-effect estimate.
  • Distinguish covariance misspecification from unmodeled mean structure.
  • Assess how phenotype outliers can alter association estimates and standard errors.
  • Use null simulations and diagnostic plots to investigate test calibration.
  • Interpret excess small p-values without assuming they prove a genetic association.

Why Calibration Matters

A fixed-effect association test is calibrated when, under its null hypothesis, its p-values behave as claimed. For example, if a test is calibrated at significance level \(\alpha=0.05\), then repeated studies satisfying the null and the model assumptions reject that null about 5% of the time. Calibration matters because an incorrectly small standard error or an inappropriate reference distribution can make null variants appear associated.

In a genetic linear mixed model, calibration depends on more than the fixed-effect test formula. It also depends on whether the covariance model represents the dependence among observations, whether relevant mean differences are controlled, and whether the phenotype is compatible with the assumed error distribution. A model can converge and produce plausible variance-component estimates while still yielding poorly calibrated association tests.

Definition: A test is calibrated under the null if its rejection probability under the null hypothesis is the stated significance level, or if its null p-values follow the uniform distribution on \([0,1]\). In a finite set of tests, p-values need not look perfectly uniform; calibration concerns their behavior across repeated null datasets.

How Covariance Misspecification Changes a Test

Let \(y\) be an \(n\)-vector of phenotypes and let \(X\) be a fixed-effects design matrix that includes a tested genetic predictor and any adjustment covariates. The working linear mixed model is \(y=X\beta+e\), with \(e\sim N(0,V)\). The covariance \(V\) may include residual variance and one or more random-effect covariance components. Generalized least squares uses this covariance to estimate \(\beta\) and to calculate its model-based standard error.

For the calibration argument, suppose the mean model is correct but the true error covariance is \(V_0\), not the fitted working covariance \(V\). Treat \(V\) as fixed for the moment. The generalized least-squares estimator and its actual covariance are

$$ \hat{\beta}=(X^\mathsf{T}V^{-1}X)^{-1}X^\mathsf{T}V^{-1}y, \qquad \operatorname{Var}_{V_0}(\hat{\beta})= (X^\mathsf{T}V^{-1}X)^{-1}X^\mathsf{T}V^{-1}V_0V^{-1}X(X^\mathsf{T}V^{-1}X)^{-1}. $$

The usual model-based covariance replaces \(V_0\) by \(V\), giving \((X^\mathsf{T}V^{-1}X)^{-1}\). If these covariances differ in the direction relevant to the tested coefficient, the reported standard error does not match the estimator's actual variability. An estimate can still target the correct mean coefficient when the mean model is correct, yet its Wald statistic can have the wrong null distribution.

A Short Derivation of the Calibration Effect

Consider a single coefficient or contrast \(\theta=c^\mathsf{T}\beta\). Its estimate is a linear function \(a^\mathsf{T}y\), where \(a^\mathsf{T}=c^\mathsf{T}(X^\mathsf{T}V^{-1}X)^{-1}X^\mathsf{T}V^{-1}\). Under the null, assume the mean of this estimate is zero and, for this derivation, that \(V\) and \(V_0\) are known and the errors are Gaussian. The model-based test divides the estimate by its standard deviation calculated from \(V\). Its actual variance is instead determined by \(V_0\). Therefore its null distribution is

$$ Z_{\mathrm{model}}= \frac{a^\mathsf{T}y}{\sqrt{a^\mathsf{T}Va}}, \qquad Z_{\mathrm{model}}\sim N\left(0,\frac{a^\mathsf{T}V_0a}{a^\mathsf{T}Va}\right). $$

This follows because a linear function of a Gaussian vector is Gaussian, with variance \(a^\mathsf{T}V_0a\); dividing by \(\sqrt{a^\mathsf{T}Va}\) divides that variance by \(a^\mathsf{T}Va\). Correct calibration requires the ratio to equal one. When variance components are estimated, Wald statistics generally rely on an approximation, so covariance misspecification can compound the approximation error.

Worked Example: A Standard Error That Is Too Small

Suppose a hypothetical null association test has a model-based standard error of 0.20 phenotype units per allele. In the coefficient direction being tested, the actual standard deviation of the estimate under the true covariance is 0.24 phenotype units per allele. Assume a Gaussian null distribution and use a two-sided nominal 5% test.

The ratio of actual to model-based variance is

$$ \frac{0.24^2}{0.20^2}=\frac{0.0576}{0.0400}=1.44. $$

Thus the reported \(Z\) statistic has null standard deviation \(\sqrt{1.44}=1.20\), rather than 1. The nominal test rejects when \(|Z|>1.96\), so its actual rejection probability is

$$ P(|Z|>1.96)=2\Phi\left(-\frac{1.96}{1.20}\right) =2\Phi(-1.633)\approx 0.102. $$

The test rejects about 10.2% of true nulls under these assumptions, roughly twice the intended 5%. The issue is not that the coefficient is necessarily biased; the stated standard error is too small for its actual sampling variability.

Unmodeled Structure Is Not Only a Covariance Problem

Genetic relatedness and other dependencies can make observations correlated, which a suitable random-effect covariance may represent. But population structure can also create differences in the expected phenotype across groups. If group membership is associated with allele dosage and phenotype, omitting group-related fixed effects can create an apparent genetic association even when there is no within-group genetic effect. A covariance model for random dependence does not automatically remove a systematic difference in the conditional mean.

For example, ancestry covariates or other measured confounders may belong in the fixed-effects design, while relatedness may be represented in the covariance. The appropriate specification depends on the scientific design and data. Adding covariates without thought is not a universal remedy: covariates should represent plausible sources of mean differences and be chosen without using the observed association result to manufacture a desired p-value.

Worked Example: A Spurious Pooled Association From Group Differences

Consider a hypothetical cohort with two equally sized ancestry groups. Within each group, suppose genotype dosage \(G\) and phenotype \(Y\) have zero covariance, so there is no within-group association. The group means are 0.4 and 1.2 alleles for \(G\), and 0.0 and 1.5 phenotype units for \(Y\).

Let \(A\) indicate group membership, with each group having probability 0.5. The covariance induced by the differing group means is

$$ \operatorname{Cov}(G,Y) =\operatorname{Cov}\{E(G\mid A),E(Y\mid A)\} =\tfrac14(1.2-0.4)(1.5-0.0)=0.300. $$

The within-group covariance terms are zero by assumption. If the within-group genotype variance is 0.50 in both groups, the pooled genotype variance is

$$ \operatorname{Var}(G)=0.50+\tfrac14(1.2-0.4)^2 =0.50+0.16=0.66. $$

The pooled regression slope is therefore \(0.300/0.66=0.455\) phenotype units per allele, even though the within-group association is zero. This is a mean-structure problem: adjusting for group in the fixed-effects model can remove this particular between-group contribution. The calculation does not establish that such an adjustment is adequate in a real analysis; it shows why a test can be miscalibrated when genotype and phenotype structure are both omitted.

Phenotype Outliers and Test Stability

A phenotype outlier is an observation unusually far from what the fitted model predicts. Under a Gaussian mixed model, a very extreme residual may be improbable, and a single observation can have substantial influence on the estimated fixed effect, the residual variance, or the variance components. Influence is especially important when an observation also has an unusual genotype value or high leverage. An outlier does not automatically mean the observation is erroneous: it may reflect a valid extreme phenotype, a recording problem, or a missing feature of the model.

Residual checks should respect the fitted covariance. When possible, inspect residuals standardized or transformed using the fitted covariance, alongside ordinary residuals and relevant covariates. A large residual may indicate a phenotype issue or a mean-model problem; a pattern across related individuals or groups may instead suggest that the covariance or fixed-effects structure is inadequate. Removing observations solely because their removal improves a p-value is not a defensible calibration strategy.

Worked Example: One Observation Dominates a Score

For illustration, consider a hypothetical null score calculation with independent unit-variance errors after adjustment for covariates. Let \(g\) be the genotype predictor after residualizing it against those covariates, with \(g^\mathsf{T}g=10\). The score estimate is \(g^\mathsf{T}y/(g^\mathsf{T}g)\), and its standard error under the stated variance assumption is \(1/\sqrt{g^\mathsf{T}g}\). Suppose one observation contributes 8 of the total score of 12, while the other observations contribute 4. That observation has residualized genotype value 2 and a residual of 4, giving its score contribution \(2\times4=8\).

Using all observations gives

$$ \hat{\beta}=\frac{12}{10}=1.20,\qquad SE=\frac{1}{\sqrt{10}}=0.3162,\qquad Z=\frac{1.20}{0.3162}=3.795. $$

The corresponding two-sided normal p-value is approximately 0.00015. As an influence check only, remove that observation and recalculate the score and genotype sum of squares: the score is \(12-8=4\), and \(g^\mathsf{T}g\) is \(10-2^2=6\). Then \(\hat{\beta}=4/6=0.667\), \(SE=1/\sqrt{6}=0.4082\), and \(Z=1.633\), with a two-sided p-value of about 0.102. This large change signals sensitivity to that observation. The deletion calculation is not a substitute for the prespecified full analysis or a reason by itself to discard the observation.

Using Null Simulations and Diagnostic Plots

A direct way to assess empirical calibration is to generate repeated datasets under a null model and apply the intended association-testing procedure to each. For a parametric null simulation, keep the observed genotypes and design covariates fixed, generate phenotypes under a model with the tested genetic effect set to zero, and retain relevant dependence among individuals. The complete analysis pipeline should be repeated, including any variance-component estimation used in practice. If the simulation uses only the fitted covariance, it assesses the procedure under that assumed model; it cannot by itself show that the assumed covariance is correct. Stress tests can instead generate data under plausible alternative covariance or mean structures.

For each simulation, record whether the null p-value is below a prespecified \(\alpha\). The proportion of rejections estimates the empirical type I error for that simulation design. Its Monte Carlo uncertainty matters: with \(R\) independent simulations and estimated rejection proportion \(\hat{p}\), the approximate Monte Carlo standard error is \(\sqrt{\hat{p}(1-\hat{p})/R}\). A small apparent departure from \(\alpha\) may be simulation noise, especially when \(R\) is small.

Worked Example: Checking Empirical Type I Error

Suppose a hypothetical stress test generates \(R=1{,}000\) null phenotype datasets under a plausible covariance structure that is not included in the fitted model. The full association procedure rejects at the 5% level in 83 datasets.

The estimated rejection proportion is

$$ \hat{p}=\frac{83}{1000}=0.083. $$

Its approximate Monte Carlo standard error is

$$ SE_{\mathrm{MC}}=\sqrt{\frac{0.083(1-0.083)}{1000}} =\sqrt{0.0000761}\approx 0.00872. $$

The estimated 8.3% rejection rate is 3.3 percentage points above the nominal 5%, about 3.8 Monte Carlo standard errors higher. This is evidence of poor calibration under this particular simulated scenario, not proof that every analysis of the cohort has an 8.3% error rate. The result should prompt investigation of the model and simulation assumptions.

Diagnostic plots help locate, but do not prove, the source of a problem. A quantile-quantile plot of null association p-values compares observed values with those expected under a uniform null distribution. Broad upward departure can indicate excess small p-values; departure concentrated in the extreme tail may have a different explanation, including genuine effects in a genome-wide analysis. A p-value histogram can show broad distortion or isolated excess near zero. Residual plots against fitted values, genotype, ancestry variables, or relatedness summaries can reveal patterns, unequal spread, and influential observations. These plots should be interpreted together with the scientific design and simulation results.

A common summary is the genomic inflation factor, often calculated as the median observed association chi-square statistic divided by the median of a one-degree-of-freedom chi-square distribution under the null. A value above one can be consistent with test-statistic inflation, but it is not a diagnosis: true polygenic effects can also raise the genome-wide median. It should not replace examination of null simulations, covariates, residuals, and the relationship structure.

A Practical Calibration Review

A disciplined review separates distinct failure modes rather than treating every excess of small p-values as the same problem. First inspect whether the fixed-effects mean structure includes plausible confounders. Then assess whether the covariance captures dependence relevant to the cohort and whether residual diagnostics suggest outliers or unmodeled patterns. Finally, test the full procedure on null simulations designed to represent the assumptions and plausible departures that matter for the study.

1
State the null and target.
Specify which fixed genetic effect is tested, which covariates are included, and the nominal significance level.
2
Check model structure.
Consider whether the fixed-effects mean and the random-effect covariance represent the relevant population and relatedness structure.
3
Inspect diagnostics.
Review null p-value plots and model-aware residual or influence diagnostics, looking for patterns rather than relying on one summary statistic.
4
Evaluate repeated null behavior.
Use simulations that preserve the relevant genotype and cohort structure, and report both the rejection rate and its Monte Carlo uncertainty.
Key takeaway: A small association p-value is trustworthy only to the extent that the test is calibrated for the data-generating structure. Covariance mismatch, omitted mean structure, and influential phenotypes can all disturb calibration, but they require different diagnostics and remedies.

Check Your Understanding

Answer each question by connecting the test statistic to the assumed model and data structure.

  1. Under what condition does the model-based variance of a GLS coefficient agree with its actual variance?
  2. Why can a random-effect covariance model fail to remove an association induced by differences in group means?
  3. In a null simulation study, what does the rejection proportion estimate, and why should its Monte Carlo uncertainty be reported?
  4. What does a large change in an association statistic after an influence check suggest, and why does it not automatically justify excluding the observation?
  5. Why can an elevated genome-wide median chi-square statistic arise even when there is no general test-calibration failure?
Clinical Biostats