Source-linked AI summary

Multiple imputation of multilevel missing data: An introduction to the R package pan

Simon Grund, Oliver Lüdtke, Alexander Robitzsch

arXiv:1611.03112v1stat.CO

TL;DR

Multilevel missing-data treatment remains challenging, while deletion, single-level MI, and ad hoc methods for clustered data continue to prevail. The paper presents pan as a tool that preserves multilevel-data features and examines the consequences of ignoring that structure.

  • Problem

    Multilevel missing-data treatment is challenging, and deletion, single-level MI, and ad hoc methods for clustered data remain prevalent.

    Source: Discussion · pp. 29, 31
  • Method

    The paper uses pan to treat multilevel missing data while preserving special features of multilevel data through posterior-predictive draws.

    Source: Example 1: Random-Intercept Model · p. 16, Discussion · p. 30
  • Results

    Ignoring the multilevel structure in the imputation model can distort parameter estimates in subsequent multilevel analyses.

    Source: Discussion · pp. 29–30
  • Takeaways & Limitations

    pan is presented as a powerful tool for treating multilevel missing data because it preserves features of typical research data.

    Source: Discussion · pp. 30–31

    Many interesting features of multilevel models may be distorted or lost when the imputation model ignores the multilevel structure, and multilevel MI remains difficult when missing data occur.

    Source: Discussion · p. 30

Abstract

from arXiv · show

The treatment of missing data can be difficult in multilevel research because state-of-the-art procedures such as multiple imputation (MI) may require advanced statistical knowledge or a high degree of familiarity with certain statistical software. In the missing data literature, pan has been recommended for MI of multilevel data. In this article, we provide an introduction to MI of multilevel missing data using the R package pan, and we discuss its possibilities and limitations in accommodating typical questions in multilevel research. In order to make pan more accessible to applied researchers, we make use of the mitml package, which provides a user-friendly interface to the pan package and several tools for managing and analyzing multiply imputed data sets. We illustrate the use of pan and mitml with two empirical examples that represent common applications of multilevel models, and we discuss how these procedures may be used in conjunction with other software.

Multilevel Modeling: An Empirical Example

Multilevel models represent persons nested within groups and can model both group-level differences and effects that vary across groups. The empirical example uses German PIRLS data to illustrate random-intercept and random-slope models with planned and unplanned missingness.

Example 1: Random-Intercept Model

Example 2: Random-Slope Model

  • The second model allows the association between cognitive ability and mathematics achievement to vary across classes through a random slope.Source: Example 2: Random-Slope Model · p. 8

Multiple Imputation of Incomplete Multilevel Data

Multiple imputation replaces missing values across completed data sets and combines analyses, but multilevel applications require imputation models that preserve the analysis structure. The article contrasts appropriate multilevel modeling with ad hoc single-level strategies that can distort estimates and standard errors.

The Multivariate Linear Mixed-Effects Model

pan uses a multivariate linear mixed-effects model that represents multiple dependent variables simultaneously while incorporating fixed effects, random effects, and residual covariance. Its imputation model fills incomplete responses conditional on completely observed predictors.

Multivariate empty model.

The multivariate empty model places all variables on the response side and uses only an intercept on the predictor side. It decomposes variances and covariances into between-group and within-group components.

  • The multivariate empty model uses only an intercept on the predictor side while placing all variables of interest on the response side.Source: Multivariate empty model · p. 12
  • For each response variable, the model separates variance and covariance into between-group Ψ and within-group Σ portions.Source: Multivariate empty model · p. 12
  • The model is a multivariate version of the null or intercept-only multilevel model, with dependent variables decomposed across levels.Source: Multivariate empty model · p. 12
  • Its covariance matrices allow relationships among dependent variables at both group and person levels.Source: Multivariate empty model · p. 12
  • The empty model is useful for estimating individual- and group-level relationships, including settings with group-level predictors.Source: Multivariate empty model · p. 12

Full mixed-effects model.

The full mixed-effects model includes both fixed and random effects, allowing multilevel imputation to represent random intercepts and slopes when the analysis model requires them.

Full mixed-effects model

  • The model estimates fixed and random effects for variables included as predictors in the multivariate linear mixed-effects model.Dependent variables may contain missing data, whereas right-hand-side predictors must be completely observed.Source: Full mixed-effects model · p. 13
  • The full mixed-effects model includes both fixed and random effects for the intercept and observed predictors.It can represent random intercepts and slopes in the imputation model.Source: Full mixed-effects model · p. 13
  • Variables are not decomposed in the full model, so fixed and random effects represent their overall effects on the dependent variables.Separate within- and between-group effects require decomposing the predictor into between- and within-group portions before MI.Source: Full mixed-effects model · p. 13
  • Random slopes in the analysis model should be represented in the imputation model through corresponding slope variances.This is why the full mixed-effects model is particularly useful for models with random slopes.Source: Full mixed-effects model · p. 13

Software Alternatives

Several software packages provide alternatives for multiple imputation of multilevel data, including procedures for simpler two-level models, complex random-slope models, joint modeling, and fully conditional specification.

Software Alternatives

  • Mplus implements a two-level procedure similar to pan’s empty model, denoted H1, and a more complex procedure, denoted H0.H0 is intended for models such as random-slope models.Source: Software Alternatives · p. 13
  • Joint modeling approaches for multilevel multiple imputation are available in SAS, REALCOM, and the R package jomo.Source: Software Alternatives · p. 13
  • The R package mice provides a fully conditional specification approach to multiple imputation.Source: Software Alternatives · p. 13
  • Some alternative packages can support analysis steps similar to those outlined for pan.The article indicates that this possibility is discussed later.Source: Software Alternatives · pp. 13–14

Example Applications with Multilevel Missing Data

The examples demonstrate how mitml exposes pan’s multilevel imputation workflow, including model specification, MCMC-based imputation, convergence checks, and analysis across multiple completed data sets.

Example Applications with Multilevel Missing Data

Intraclass correlations.

The examples show that multilevel MI affects estimated intraclass correlations and model effects, while supporting analyses of within-group, between-group, contextual, and varying-slope relationships.

Intraclass correlations

  • Multilevel MI produced larger ICC estimates than single-level MI, especially for variables with substantial missing data.Listwise-deletion estimates were closer to multilevel MI without an obvious systematic pattern.Source: Intraclass correlations · p. 20
  • Higher SES was associated with higher math achievement, whereas disciplinary problems were associated with lower math achievement.Class-level estimates were roughly twice as large as student-level estimates.Source: Intraclass correlations · p. 22
  • Single-level MI yielded similar within-group estimates but consistently larger between-group estimates than multilevel MI.Source: Intraclass correlations · p. 22
  • Listwise deletion produced larger standard errors, especially at the student level, and smaller class-level effect estimates.Source: Intraclass correlations · p. 22
  • The contextual effect of SES was statistically significant at p < .001 (F = 15.297, df 1 = 1, df 2 = 1293.0).Classes with higher SES tended to have higher math achievement after controlling for student-level SES.Source: Intraclass correlations · p. 23
  • The latent-group-mean and manifest-group-mean analysis models led to essentially the same conclusions in the example.Source: Intraclass correlations · p. 24

Convergence diagnostics.

Convergence diagnostics indicated that the pan MCMC chain had become stationary, while autocorrelation persisted mainly for group-level variance components. All parameters showed negligible autocorrelation by lags of 15,000 to 20,000 iterations.

Model of interest.

The multilevel model examined whether student-level cognitive ability predicted mathematics achievement after controlling for SES, while allowing effects to vary across groups. A pooled likelihood-ratio test found statistically significant slope variance, indicating that the association differed by class.

  • The model examined student-level variables and included predictors centered around their group means using within.Source: Model of interest · p. 26
  • Students with higher cognitive ability than their class average tended to score higher on the math achievement test after controlling for SES.Source: Model of interest · p. 27
  • The relation between cognitive ability and math achievement appeared to vary substantially across groups.Source: Model of interest · p. 27
  • Compared with single-level MI, the multilevel estimates differed slightly, whereas Mplus H0 imputation produced results similar to pan4.Source: Model of interest · p. 27
  • The pooled LRT was statistically significant at p = .006 (F = 5.119, df 1 = 2, df 2 = 10386.2), indicating that slope variance differed from zero.Source: Model of interest · p. 28
  • Students with different cognitive ability may differ more or less strongly in their math achievement scores depending on their class.Source: Model of interest · p. 28
  • The LRT approach may have low statistical power for testing variance components, and few alternatives are available for multiply imputed data.Source: Model of interest · p. 28

Analyzing Imputations Generated by Alternative Software

mitml can analyze multiply imputed data sets regardless of their software origin when they are represented as a list of data sets in R. Its wrapper and conversion functions also provide access to convergence diagnostics, while other software may be preferable for categorical, ordinal, or group-level missing variables.

Discussion

The discussion presents pan and mitml as accessible tools for multilevel missing-data analysis, while emphasizing that simpler methods can distort estimates and that important challenges remain for complex models and multiply imputed-data analysis.

Motivation

  • Multilevel missing-data methods remain underused in applied research, with listwise deletion, single-level MI, and ad hoc approaches still prevalent.The paper attributes this partly to the limited accessibility of state-of-the-art procedures and software.Source: Discussion · pp. 29, 31

Empirical illustrations

  • The two examples illustrate pan and mitml for random-intercept models, between- and within-group effects, random slopes, and slope-variance estimation and testing.Example 1 focuses on random-intercept models; Example 2 addresses random slopes.Source: Discussion · pp. 29–30

Practical contribution

  • pan preserves multilevel features, uses available and auxiliary information, and supports reliable estimation without altering the model of interest.The discussion contrasts these capabilities with simpler methods that may distort or lose multilevel-model features.Source: Discussion · p. 30

Empirical illustrations

  • Multilevel MI using pan produced substantially different parameter estimates from single-level MI, while listwise-deletion estimates were sometimes closer to the multilevel results.These findings illustrate that ignoring clustering can distort estimates in subsequent multilevel analyses.Source: Discussion · pp. 29–30

Open challenges

  • Important limitations remain for missing predictors in models with random slopes or interactions, and for estimating multilevel-model goodness-of-fit measures after MI.The paper notes that clear recommendations are still lacking and that some advanced methods are not available in standard software.Source: Discussion · pp. 30–31

Practical contribution

  • mitml provides tools for combining parameter estimates, model comparisons, and model constraints across multiply imputed data sets, including Rubin’s rules and D1–D3 procedures.The package addresses the challenge of analyzing multiply imputed data when software lacks tools for combining results.Source: Discussion · p. 31
Loading 1611.03112v1…