Tutorials › Statistical Genetics › Multiple Imputation for Missing Phenotypes and Covariates

Covariates, Missingness, and Robust Inference · Tutorial 325 of 989

Multiple Imputation for Missing Phenotypes and Covariates

Build multiple imputations that respect the association model, then pool its estimates and uncertainty correctly.

Intermediate 10 min read

What You'll Learn

  • Distinguish imputation of a missing phenotype from imputation of a missing covariate
  • Choose chained-equation models appropriate to continuous, binary, and categorical variables
  • Include the tested genotype and relevant analysis variables in the imputation models
  • Understand the assumptions and limitations of multiple imputation
  • Pool regression coefficients and variances using Rubin’s rules
  • Interpret pooled confidence intervals for quantitative and binary-trait associations

Why Multiple Imputation Matters in Genetic Association

An association analysis can lose information when a phenotype or an adjustment covariate is missing. An analysis restricted to participants with complete records may also be biased if inclusion in that subset is related to the phenotype, genotype, or covariates. Multiple imputation offers a way to represent uncertainty about missing values rather than filling each gap with a single fixed prediction.

The central procedure is to create several completed datasets, fit the same planned association model to each one, and combine the resulting estimates and variances. The separate imputations are not independent studies: they are alternative plausible completions of the same observed data. Their variation is part of the uncertainty that must be included in the final inference.

Definition: Multiple imputation replaces each missing value with multiple draws from an imputation model, producing \(m\) completed datasets. The analysis model is fitted separately to each dataset; the estimates and their variances are then pooled to account for both sampling uncertainty within completed datasets and uncertainty between imputations.

Constructing Imputations for Association Analysis

Before imputing, specify the association model and its target parameter. For a single-variant analysis, that model commonly includes the phenotype, the tested variant’s genotype or dosage, and the prespecified covariates. The imputation models should include these variables as appropriate: when a covariate is missing, the phenotype and tested genotype can be informative predictors of it; when the phenotype is missing, genotype and covariates can help predict the phenotype. Omitting the tested genotype when imputing a missing phenotype or covariate can distort the genotype–phenotype relationship that the analysis is meant to estimate.

Predictors of missingness or of the missing values can also improve imputations. Depending on the study, these may include ancestry principal components, recruitment site, assay batch, or other observed variables. Their inclusion should be scientifically justified and should not replace the planned adjustment set by an unprincipled, data-driven search. If the analysis includes a nonlinear term or an interaction, the imputation strategy should preserve that structure where relevant; imputing only main effects and later analyzing an interaction can make the imputation and analysis models incompatible.

A common implementation is fully conditional specification, also called chained equations. Each variable with missing entries is assigned a conditional model given the other variables. The procedure cycles through the variables, updating missing values by draws from the corresponding conditional distributions. Model choice follows the variable’s scale and support: for example, a normal linear model may suit a roughly continuous covariate, logistic regression a binary covariate, and multinomial or ordinal regression a categorical covariate. A model should respect meaningful bounds and categories; a normal model is generally not suitable for a binary variable or a count that cannot be negative.

The conditional models should be stochastic and include uncertainty in their fitted parameters as well as residual variation. A deterministic prediction substituted repeatedly would not generate the between-imputation uncertainty needed for valid pooling. Chained equations are a practical strategy, but their use does not guarantee that all conditional models correspond to a coherent joint distribution. Check convergence and plausibility of the generated values, and use models appropriate to the study design and analysis.

Assumptions and scope: Standard multiple-imputation inference relies on an adequate imputation and analysis strategy, including a missing-at-random assumption: conditional on observed information included in the model, the probability a value is missing does not depend on its unobserved value. The missingness mechanism itself is not established by the observed data alone. Multiple imputation does not automatically remove bias under nonignorable missingness, model misspecification, or an imputation model that fails to preserve the target association.

Worked Example: A Chained-Equation Draw for a Missing Binary Covariate

Suppose a hypothetical association analysis adjusts for smoking status, which is missing for one participant. Smoking is binary, so the imputation step uses a logistic conditional model. For illustration, suppose the fitted model is \(\operatorname{logit}\{P(S=1\mid G,A,Y)\}=-2+0.30G+0.02A+0.80Y\), where \(S=1\) indicates smoking, \(G\) is genotype dosage in alleles, \(A\) is age in years, and \(Y=1\) indicates the phenotype case group. The participant has \(G=2\), \(A=50\) years, and \(Y=1\).

Calculate the conditional probability. The linear predictor is \(\eta=-2+0.30(2)+0.02(50)+0.80(1)=0.40\). Thus \(P(S=1\mid G,A,Y)=\exp(0.40)/\{1+\exp(0.40)\}=1.492/(1+1.492)=0.599\).

Draw a value rather than substituting the probability. In one hypothetical imputation, a uniform random draw \(u=0.42\) is less than 0.599, so the imputed smoking value is \(S=1\). In another imputation, a draw \(u=0.73\) exceeds 0.599, so the value is \(S=0\). The genotype and phenotype appear in the conditional model, helping the completed data retain their observed association structure. Actual imputation also accounts for uncertainty in the fitted conditional model.

Rubin’s Rules for Pooling Estimates

Let \(Q_i\) be the estimate of the target parameter from completed dataset \(i\), and let \(U_i\) be its estimated variance from that dataset, for \(i=1,\ldots,m\). For example, \(Q_i\) may be a genotype coefficient and \(U_i\) its squared standard error. Rubin’s rules combine the \(m\) estimates and variances as follows.

$$ \bar{Q}=\frac{1}{m}\sum_{i=1}^{m}Q_i,\qquad \bar{U}=\frac{1}{m}\sum_{i=1}^{m}U_i,\qquad B=\frac{1}{m-1}\sum_{i=1}^{m}(Q_i-\bar{Q})^2 $$

Here \(\bar{Q}\) is the pooled estimate, \(\bar{U}\) is the average within-imputation variance, and \(B\) is the between-imputation variance. The total variance and pooled standard error are

$$ T=\bar{U}+\left(1+\frac{1}{m}\right)B,\qquad SE_{\mathrm{pooled}}=\sqrt{T}. $$

The factor \(1+1/m\) includes the finite number of imputations: \(B\) reflects variation in estimates across plausible completed datasets, and \(B/m\) accounts for the uncertainty from estimating the pooled result using only \(m\) imputations. Consequently, pooling only the mean coefficient and its average within-imputation variance omits an important source of uncertainty whenever \(B\) is nonzero.

For a scalar estimate, a commonly used large-sample degrees-of-freedom approximation is

$$ df=(m-1)\left(1+\frac{\bar{U}}{(1+1/m)B}\right)^2. $$

When \(B=0\), this expression is treated as having infinite degrees of freedom. Otherwise, a confidence interval is \(\bar{Q}\pm t_{1-\alpha/2,df}\sqrt{T}\), where \(t_{1-\alpha/2,df}\) is the corresponding quantile of the \(t\) distribution. This is a scalar, large-sample pooling rule; more elaborate finite-sample adjustments may be appropriate when complete-data degrees of freedom are limited.

The variance rule follows the law of total variance in a simple way. Conditional on a completed dataset, the analysis has estimated variance \(U_i\), representing sampling uncertainty within that completion. Across completions, the estimates vary because the missing values are uncertain, measured by \(B\). If the mean estimate is based on only \(m\) draws, its Monte Carlo contribution is approximately \(B/m\). Adding the average within variance and both between-imputation components gives \(T=\bar{U}+B+B/m\).

Worked Example: Pooling a Quantitative-Trait Association

In five hypothetical completed datasets, the estimated genotype effects on a quantitative trait are \(0.18, 0.22, 0.20, 0.16,\) and \(0.24\) trait units per additional effect allele. Their standard errors are \(0.08, 0.09, 0.08, 0.10,\) and \(0.09\) trait units per allele. The same association model is fitted in each dataset.

Pooled estimate. \(\bar{Q}=(0.18+0.22+0.20+0.16+0.24)/5=1.00/5=0.200\) trait units per allele.

Within- and between-imputation variances. Squaring each standard error gives \(\bar{U}=(0.0064+0.0081+0.0064+0.0100+0.0081)/5=0.0390/5=0.00780\). The squared deviations from 0.200 sum to \(0.0004+0.0004+0+0.0016+0.0016=0.0040\), so \(B=0.0040/(5-1)=0.00100\).

Total variance and interval. \(T=0.00780+(1+1/5)(0.00100)=0.00900\), giving \(SE_{\mathrm{pooled}}=\sqrt{0.00900}=0.0949\) trait units per allele. The degrees of freedom are \(df=4\{1+0.00780/[1.2(0.00100)]\}^2=4(7.50)^2=225\). Using \(t_{0.975,225}\approx1.97\), the 95% confidence interval is \(0.200\pm1.97(0.0949)=[0.0130,0.387]\) trait units per allele.

The pooled estimate indicates an estimated increase of 0.200 trait units per additional effect allele under the fitted model. The interval is an approximate 95% confidence interval for the association coefficient, incorporating within- and between-imputation uncertainty; it is not a probability statement about whether the fixed coefficient lies in this particular interval.

Pooling Binary-Trait Association Results

For logistic association, pool the regression coefficient on the log-odds scale and its variance—not odds ratios or p-values. If \(Q_i\) is the genotype coefficient, the pooled odds ratio per allele is \(\exp(\bar{Q})\). Exponentiate the endpoints of the pooled coefficient interval to obtain an interval for that odds ratio. This procedure keeps the pooling calculations on the approximately symmetric coefficient scale.

Worked Example: Pooling a Logistic Association

Suppose four hypothetical imputations give genotype coefficients \(0.30, 0.25, 0.35,\) and \(0.30\) log-odds units per allele, with standard errors \(0.12, 0.13, 0.12,\) and \(0.14\) log-odds units per allele.

Pool the coefficients and variances. \(\bar{Q}=(0.30+0.25+0.35+0.30)/4=1.20/4=0.300\). The within variance is \(\bar{U}=(0.12^2+0.13^2+0.12^2+0.14^2)/4=(0.0144+0.0169+0.0144+0.0196)/4=0.016325\). The deviations from 0.300 are \(0,-0.05,0.05,0\), so \(B=(0+0.0025+0.0025+0)/3=0.001667\).

Calculate uncertainty. \(T=0.016325+(1+1/4)(0.001667)=0.018408\), and \(SE_{\mathrm{pooled}}=\sqrt{0.018408}=0.1357\). The degrees of freedom are \(df=3\{1+0.016325/[1.25(0.001667)]\}^2\approx234\). With \(t_{0.975,234}\approx1.97\), the coefficient interval is \(0.300\pm1.97(0.1357)=[0.0327,0.567]\) log-odds units per allele.

Report on the odds-ratio scale. The pooled odds ratio is \(\exp(0.300)=1.35\) per additional effect allele. Exponentiating the interval endpoints gives \([\exp(0.0327),\exp(0.567)]=[1.03,1.76]\). Under the fitted model, the estimated odds are 1.35 times as large per additional effect allele; this is an association estimate, not evidence that genotype causes the phenotype.

Practical Checks and Common Pitfalls

A defensible workflow keeps the imputation and association analyses aligned. Specify the target association model first, select conditional imputation models suited to each incomplete variable, generate multiple stochastic completed datasets, and fit the same analysis model with the same coding and covariate set in every dataset. Then pool the coefficient and variance using Rubin’s rules and report the number of imputations, imputation-model choices, and the pooled uncertainty.

  • Do not omit the tested genotype or phenotype automatically. They can predict missing covariates and phenotypes and help preserve the association being estimated.
  • Do not use a single deterministic fill. A mean, mode, or predicted value substituted once fails to represent uncertainty in the missing data.
  • Do not pool p-values or odds ratios directly. Pool the model coefficient and its variance; transform the pooled coefficient and interval only afterward when needed.
  • Do not assume MAR just because multiple imputation was used. The method depends on its assumptions and models; imputation alone cannot demonstrate that missingness is ignorable.
Key takeaway: Multiple imputation is an analysis strategy, not merely a way to fill blanks. Include the variables needed to preserve the genetic association, generate plausible stochastic completions, refit the planned model in each, and combine estimates with both within- and between-imputation variance.

Check Your Understanding

Try these questions without looking back.

  1. In a single-variant association analysis, why might the tested genotype belong in the imputation model for a missing phenotype or covariate?
  2. Which conditional model would be a reasonable starting choice for an incomplete binary covariate, and why should its imputed values be stochastic?
  3. In Rubin’s rules, what do \(\bar{U}\) and \(B\) measure, and why does the total variance include both?
  4. For logistic association, which scale should be pooled before converting a result to an odds ratio?
  5. State the missing-at-random assumption in words and explain why using multiple imputation does not establish that it holds.
Clinical Biostats