Skip to main content
Biostatistics (Oxford, England) logoLink to Biostatistics (Oxford, England)
. 2018 Sep 6;21(2):236–252. doi: 10.1093/biostatistics/kxy040

Missing data and prediction: the pattern submodel

Sarah Fletcher Mercaldo 1,, Jeffrey D Blume 2
PMCID: PMC7868046  PMID: 30203058

SUMMARY

Missing data are a common problem for both the construction and implementation of a prediction algorithm. Pattern submodels (PS)—a set of submodels for every missing data pattern that are fit using only data from that pattern—are a computationally efficient remedy for handling missing data at both stages. Here, we show that PS (i) retain their predictive accuracy even when the missing data mechanism is not missing at random (MAR) and (ii) yield an algorithm that is the most predictive among all standard missing data strategies. Specifically, we show that the expected loss of a forecasting algorithm is minimized when each pattern-specific loss is minimized. Simulations and a re-analysis of the SUPPORT study confirms that PS generally outperforms zero-imputation, mean-imputation, complete-case analysis, complete-case submodels, and even multiple imputation (MI). The degree of improvement is highly dependent on the missingness mechanism and the effect size of missing predictors. When the data are MAR, MI can yield comparable forecasting performance but generally requires a larger computational cost. We also show that predictions from the PS approach are equivalent to the limiting predictions for a MI procedure that is dependent on missingness indicators (the MIMI model). The focus of this article is on out-of-sample prediction; implications for model inference are only briefly explored.

Keywords: Missing data, Missing-indicator method, Pattern Mixture Models, Prediction models

1. Introduction

1.1. The problem

Missing data are problematic for both estimation and prediction. The statistical literature has been focused on addressing the impact of missing data on parameter estimation and inference. However, forecasting with incomplete predictor information is also highly problematic. The misspecification of an influential predictor can be very costly in terms of prediction accuracy. Thus, it is important to have a validated and robust approach for handling such instances.

In this article, we focus on what Wood and others (2015) call pragmatic model performance: the model’s performance in a future setting where records may have partly missing predictors. For context, we consider the scenario of building clinical prediction models for use in hospital or out-patient settings. But these methods are broadly applicable to any prediction setting. The problem arises when one attempts to apply an established prediction algorithm to a new (out-of-sample) individual who has an incomplete predictor profile (i.e. some predictors are missing). It is not hard to imagine that the manner in which those missing predictors are dealt with is critical for maintaining the predictive accuracy of any forecast.

It is often assumed that “proper” imputation of new individual’s missing predictors will, at the least, maintain the predictive accuracy of any algorithm. Some have even claimed that certain types of imputation can improve the accuracy of forecasts. However, we could find no rigorous justification for these claims and our investigation indicates that this would be the exception rather than the rule. As we describe below, imputation methods can maintain the predictive accuracy of a model when key assumptions about the missing data mechanism are met. The predictive accuracy of our proposed approach, pattern submodels (PS), is at least as accurate as imputation methods and does not depend on assumptions about the missing data mechanism. In many cases, it is also more computationally efficient.

In our view, the impact of missing data on out-of-sample prediction performance is uniformly understated in the statistical and clinical literature. A poor imputation algorithm, e.g. zero-imputation or mean imputation, can drastically reduce a model’s prediction performance in practice. This a highly practical problem with wide applicability.

1.2. Current approaches to imputing missing predictors

When applying prediction algorithms, strategies for dealing with missing predictors are often driven by practical constraints. Common strategies include zero imputation and mean imputation, which are trivial to implement, but often lead to poor predictions when the missing predictors are influential. Conditional mean imputation and multiple imputation (MI) are now regularly implemented when fitting a model, but they are rarely used in real time when the model is applied to new individuals that are missing predictors (Janssen and others, 2009). The advantages and drawbacks of imputation methods for out-of-sample imputation are listed in Table 1. The obvious issue, not well addressed in the literature, is the extent to which these approaches degrade prediction performance.

Table 1.

Comparing imputation methods for an out-of-sample individual with missing data

  Out-of-sample Imp.    
  Requires Pros Cons
Zero imputation Nothing Neglible computation time Zero may not be an appropriate value
      Probably results in incorrect predictions
Mean imputation Unconditional means Neglible computation time Only works for the average individual
Conditional mean imputation Conditional mean imputation model for every missing data pattern Lower computation time Large bias/variance tradeoff for MNAR
    Can approximate a MI procedure  
CCS Submodels to be fit Negligible computation time Large bias/varaince tradeoff for MNAR
    May be advantageous if data are MAR  
    Fittable for unobserved patterns  
PS Submodels to be fit Negligible computation time May be less efficient if data are MAR
    Works for any missingness mechanism Patterns with low membership may not fit well
MMI Original data/conditional distribution Works for any missingness mechanism High computational cost
  Computer/imputation engine Allows for efficient parameter estimation Not viable in the clinic
MI Original data/conditional distribution Established method High computational cost
  Computer/imputation engine Works when data are MAR Not viable,in the clinic
      Large bias/variance tradeoff for MNAR

MI is typically used in the model construction stage. MI draws multiple placeholder values from conditional distributions derived from the observed data (van Buuren, 2012; Janssen and others, 2010; Harrell, 2013) and uses those placeholder values to fit the model. The coefficients from each of these fits are combined using Rubin’s rules (Rubin, 2009). When the data are missing at random (MAR), MI can substantially increase the efficiency of inferential procedures by leveraging partial information from incomplete data records. The “best” predictions from a multiply imputed prediction model are the averaged predictions over all imputation sets (Vergouwe and others, 2010; Wood and others, 2015). The popularity of MI for handling missing data in both the construction and forecasting stages has recently grown (Harrell, 2013; Janssen and others, 2009).

However, the applicability of the approach described above is limited when the user only has access to published parameter estimates. Making predictions from a multiply imputed model when predictors are missing is not straightforward, and it generally requires access to the original data in addition to the published parameter estimates. In order for the real time imputations to be reflective of the MI procedure used during model construction, the additional out-of-sample record should be combined with the original data, and the full imputation algorithm should be refit to properly fill in missing predictors.

This nuance is especially important when using predictive mean matching or K-nearest neighbor imputation techniques (as we do here). Of course, this requires access to the original data, the imputation datasets, and substantial on-demand computing power, which is typically impractical in real world settings. Moreover, because of its heavy computational burden, MI is not easily incorporated into web applications. One option is to simply ignore this issue and use the multiply-imputed model along with a one-step imputation procedure rooted in the chain equations or fitted conditional distributions. But this process is not likely to be congenial with the original fitting approach and it did not perform well in our investigations.

1.3. Proposed solution

Our proposed solution is to use an approach we call the PS procedure. The basic idea is to fit a pattern mixture model and forecast from whichever pattern-specific model matches the new but incomplete predictor profile. This simple idea turns out to be highly effective and quite flexible. How the PS are fit is important; we suggest using data only from that pattern to avoid having to make assumptions about the missing data mechanisms. Note that the fitting of PS requires no imputation because standard model construction typically ignores predictors that are uniformly missing in an entire group. Details are provided in Section 3.1. Forecasts from PS benefit from the reduction in prediction bias that comes with the pattern-specific approach. The loss in efficiency in parameter estimation that can result often translates to a relatively minor penalty in prediction measures. Moreover, as we show later, the PS approach is optimal in the sense that it minimizes the expected prediction loss in the class of models being fit. Because of these advantages, we anticipate that the PS approach will have broad impact for big data applications where prediction is paramount and MI is often computationally unfeasible, e.g. when using an entire system of electronic medical records (EMR).

1.4. A notable relationship

There are some interesting mathematical connections between PS and MI. PS is the limit of a congenial MI procedure where the mean model depends on the missing data indicators. This new MI procedure, which we call multiple imputation with missingness indicators (MIMI)—gives limiting predictions that are equivalent to the PS models. What is nice about the MIMI model is that it makes it clear what elements of the model can be assumed identical across the patterns. However, to forecast from the MIMI model requires imputation and therefore substantial computational commitment.

The MIMI model is also known as the missing indicator model and is known to perform poorly for estimation purposes when simple imputation methods such as zero or mean imputation are employed (Allison, 2001; Groenwold and others, 2012). However, a corollary of our approach is that the inclusion of the missing data indicator in the mean model is not the root problem; rather it is how the missing data placeholder is imputed that causes subsequent bias in parameter estimation. When MI is used to fill in missing values in a MIMI model, the parameter estimates will remain unbiased under certain conditions on the missing data mechanism. The lesson is that the utility of the missing data indicators can only be realized through an imputation procedure; an often overlooked point. We will not explore this connection in this article, but the connection is important to note in this context.

1.5. Organization

Section 2 defines our notation and provides essential background on key missing data concepts. Section 3 describes our proposed methods, provides a simple example, and draws connections between PS and MI models in some generality. Section 4 describes extensive simulations of PS in comparison to standard approaches. Section 5 describes the performance of PS compared with other imputation strategies applied to the SUPPORT Study, a multi-center two phase study of 9105 patients, from which a day 3 Physiology Score (SPS) was predicted (Knaus and others, 1995). Section 6 provides some brief concluding remarks.

2. Notation and background

2.1. Notation

Let Inline graphic be the vector of Inline graphic-length observed responses. With our focus on prediction, we assume all responses are observed. This assumption can be relaxed, but it is not pertinent to our discussion here. Predictors (covariates) are denoted by a Inline graphic matrix Inline graphic where Inline graphic for Inline graphic predictor vectors of length Inline graphic. Let Inline graphic be the Inline graphic matrix of missing data indicators where indicator Inline graphic if Inline graphic is missing and Inline graphic if Inline graphic is observed for Inline graphic individuals and Inline graphic parameters. This notation is consistent with Dardanoni and others (2015) and White and Carlin (2010), two of our key references, but reversed from the more common notation where observed and missing predictors are assigned the values 1 and 0, respectively. Inline graphic is used to indicate the subset of all available predictors in missing data pattern Inline graphic.

To help differentiate between models, we will use different Greek symbols for their parameters. For example, parameters in the PS will be donated with a Inline graphic. Parameters in a traditional regression model Inline graphic will be donated by Inline graphic; these are the parameters that are typically of interest in an estimation setting. Note that the assumption of a common mean model across all missing data patterns (i.e. some version of MAR) is obviously a strong one. Parameters representing the effects of the missingness indicators, Inline graphic, will be denoted by Inline graphic; these parameters distinguish the MIMI model (defined in Section 3.4) from a traditional MI model.

2.2. Background on pattern mixture and selection models

Our approach has roots in the established literature on pattern mixture models (Little, 1993). The pattern mixture model factorization is: Inline graphic, where Inline graphic is a parameter vector for the missingness mechanism (Little and Rubin, 2014). The pattern-mixture approach allows for a different response (mean) model in each missing data pattern. Our PS models are the kernels Inline graphic of the pattern-mixture model. By fitting a submodel using only data from that missing data pattern, we avoid the reliance on assumptions about the forms of the missing data mechanism. An alternative formulation is the selection model: Inline graphic where Inline graphic and Inline graphic are parameter vectors (Little and Rubin, 2014; Little and Wang, 1996). This factorization describes a (single) marginal response model, possibly dependent on elements from of the missing data mechanism. In this article, we will not explicitly consider selection models except to use them to simulate data from certain missing data mechanisms. While the selection model allows for potential dependence of Inline graphic and Inline graphic, the pattern-mixture model is traditionally used when the response model changes by missing data pattern.

2.3. Missingness mechanisms

To describe missing data processes, we define the following mechanisms: missing completely at random (MCAR; Inline graphic for some constant Inline graphic ), missing at random (MAR; Inline graphic), missing not at random (MNAR; Inline graphic), MAR where the missingness depends on Inline graphic (MARY; Inline graphic), and missing not at random where the missingness depends on Inline graphic (MNARY; Inline graphic) (White and Carlin, 2010; Little and Rubin, 2014). The latter two mechanisms can only be simulated in the selection model formulation.

If the missingness mechanism is MCAR, then pattern mixture and selection models are equivalent (Little, 1993). When the data are not MCAR, the parameters of the kernel functions associated with the selection and pattern mixture models have different interpretations and care must be taken when estimating and interpreting them. The selection model describes the marginal relationship of Inline graphic on Inline graphic, while the pattern mixture model describes the relationship of Inline graphic on Inline graphic conditional on Inline graphic. Marginal effects from the selection model are generally not identifiable in the context of a pattern mixture model, although some parameterizations can be identified though complete case restrictions that essentially force equality restraints on certain parameters (Little, 1993). Identifiability is obviously a problem when the goal is estimation and data are MNAR. However, when forecasting is the goal, complex re-parameterizations of marginal effects are not a major impediment, even if the mapping is not easily reversed. If a single marginal model is truly of interest, one can always marginalize over the pattern-specific models. Of course, how that model should be interpreted when the data are not MAR is not immediately clear.

2.4. Complete case approaches

A complete case analysis simply ignores the records with missing data and estimates a single model from the complete data set. Complete-case models have poor prediction performance when the data are not MCAR (Knol and others, 2010; Janssen and others, 2009). Moreover, the comple-case model still requires some type of imputation when forecasting from incomplete records.

The complete case analysis should not be confused with complete case submodels (CCS). CCS are similar to our proposed PS approach in that they fit a unique model for every missing data pattern. However, CCS use data from all patterns to estimate the fit in each pattern. This often entails re-using records and discarding observed data. For example, if age were the only missing predictor, two models would be fit: one with age and one without. The PS approach would fit each model submodel separately using the set of records with age and the set of records without age. CCS, on the other hand, uses all the records to estimate the submodel that excludes age; age is simply ignored in the records that have it. As a result, the validity of CCS predictions depends on a very strong MCAR assumption, which is often violated in practice. CCS has been explored by Janssen and others (2009) and it is the only other submodel approach that we found that has been systematically examined.

3. Methods

3.1. Pattern submodels

Let Inline graphic where Inline graphic be the set of pattern-mixture submodels for pattern Inline graphic where Inline graphic different patterns. This might encompass straightforward prediction algorithms such as Inline graphic where Inline graphic is the vector of estimated pattern-specific parameters or more complex algorithms such as pattern-specific random forests. While the potential exists for fitting Inline graphic different models, in practice only a small fraction of those patterns are observed. Note that Inline graphic is fit only on the data in pattern Inline graphic.

For comparison, denote the set of CCS models as Inline graphic for patterns Inline graphic. For example, we might have Inline graphic. Note that Inline graphic is fit using all records that have the full set of existing data for pattern Inline graphic and hence depends on a different parameter vector Inline graphic. In Section 3.4, we discuss how to fit PS and CCS when a pattern is not observed or the observed data are too sparse.

The difference between Inline graphic and Inline graphic is illustrated in Table 2 using a linear model for continuous outcome Inline graphic and two covariates Inline graphic, Inline graphic. There are only four missing data patterns: (i) Inline graphic, Inline graphic both observed; (ii) Inline graphic missing, Inline graphic observed; (iii) Inline graphic observed, Inline graphic missing; (iv) Inline graphic, Inline graphic both missing. We see in Table 2 that the estimated PS response function for Inline graphic is Inline graphic while the CCS analogue Inline graphic is estimated by Inline graphic. Here Inline graphic does not necessarily equal Inline graphic for any Inline graphic. It is tempting to assume that the CCS pattern 1 model would yield a reliable estimate of the marginal model Inline graphic, but this only happens when the data are MAR on the covariates (and not on the response) (see White and Carlin, 2010; Bartlett and others, 2014).

Table 2.

Comparison of pattern submodels and complete case submodels

Pattern PS (Inline graphic) CCS (Inline graphic)
1:Inline graphic Inline graphic Inline graphic
2:Inline graphic Inline graphic Inline graphic
3:Inline graphic Inline graphic Inline graphic
4:Inline graphic Inline graphic Inline graphic

Inline graphic represents the effect of the Inline graphic covariate in pattern Inline graphic

3.2. Prediction Performance of PS

PS is computationally efficient because it fits a series of models in which all the necessary data is observed. Thus, we need only fit and cross-validate the pattern-specific models using standard techniques. Moreover, minimizing the expected loss in each pattern is equivalent to minimizing the expected loss marginally.

3.2.1. Minimization of the expected prediction error.

Minimizing the expected prediction error (EPE) in each pattern will, in turn, minimize the overall EPE. Let Inline graphic be a properly defined loss function for outcome Inline graphic and forecasting algorithm Inline graphic. We then have:

graphic file with name M100.gif

where Inline graphic. Hence, the selection of Inline graphic that minimizes the pattern specific expected loss, Inline graphic, will in turn minimize the overall loss Inline graphic.

The form of the loss function is flexible; it could be squared error loss or 0/1 loss (Hastie and others, 2009). The pattern-specific restriction of the loss function should not be overlooked; the result might not hold for metrics where predictions in one pattern are compared with predictions in another. One example of this is the Area under the receiver operating characteristic curve (AUC), with the overall AUC not equalling the average of pattern specific AUCs.

This result implies that, in practice, prediction models should be constructed and cross validated within each pattern in order to maximize predictive ability. Note the restriction of this result to a certain class of models Inline graphic. This class must remain constant across patterns. If a linear model of a certain form is fit for the overall model, then a linear model of the same form must be fit for each pattern (with the obvious exception that missing predictors are excluded in the PSs). If a cross-validated relaxed lasso is used to develop the overall model, then a cross-validated relaxed lasso must be used within each pattern. Likewise for random forests. The above result does not necessarily apply when the prediction class changes across patterns or does not match the prediction class used for the overall model. Rather, the result only tells us the optimal way to deal with the missing data in that class of prediction algorithms. We explore this point using a relaxed lasso in our data example. Also, for the record, we note that while it is sometimes possible to find a more parsimonious model that yields a smaller EPE, these tend to occur in âŁ˜small⣙ samples, highly collinear settings, or low signal-to-noise contexts (see Shmueli, 2010), and this is not a reason to avoid the PS approach.

In Section 1.1 in the supplementary material available at Biostatistics online, we revisit a simple example given by Shmueli (2010) in which the EPE is evaluated for a “fully specified model” (large) versus an “underspecified model” (small). We can visualize the EPE as a weighted average of the large and small prediction models. The EPE for the correctly specified full model is just the irreducible error, whereas the EPE for the underspecified model increases as the out-of-sample predictor moves away from its population mean.

3.3. Practical considerations

Forecasting with MI comes with a substantial computational burden because the imputation algorithm must be repeated with the addition of the new records to the original data. PS, on the other hand, do not need to be re-computed. The upfront computational effort can be large for Inline graphic patterns, but this is still minor relative to repeated applications of MI. A drawback of PS is that when data are sparse within a pattern, it may not be possible to fit the PS. In such cases it is necessary to make simplifying assumptions and CCS is an alternative option. This hybrid approach has worked well for us in practice, in large part because the contribution to the EPE for patterns that are sparse is often negligible.

If Inline graphic is very large, and storing Inline graphic prediction models is unreasonable, there are several options. First, fit models only for observable patterns, ignoring patterns not observed. Second, only fit models for patterns in which the missing variable, or combinations of missing variables, are “important” to the predictions. Third, if the data are available in real time, it may be possible to fit the specific pattern mixture submodel on demand. Lastly, an examination of the MIMI model during the model construction stage can indicate how best to borrow strength over the patterns (Section 3.4).

When the number of predictors is large relative to the number of data records, our approach is no worse than traditional approaches. There are no easy answers when the sample size is too small to permit a meaningful exploration of the predictors space. And, of course, âŁoesmall⣞ is relative to the number of missing data patterns and potential predictor space and the irreducible noise levels. In practice we use the following rule of thumb: fit the PS when there are Inline graphic data points in the missing data patterns, otherwise fit a CCS. Alternatively, a lasso model might work well in these settings. When the number of predictors and the amount of data are both large (e.g. EMR data), MI can be nearly impossible to implement due to computational limitations. In these cases, the PS approach is not only feasible, it is to be preferred. It is actually easier, in a computational sense, to break the problem up into to a large number of smaller challenges that can be dealt with in parallel.

3.4. PS as the limit of MIMI model

The MIMI model is a MI model that is dependent on the indicators Inline graphic from Inline graphic. Consider the case of a linear model with Inline graphic covariates, Inline graphic and Inline graphic. In this case, we could write:

graphic file with name M115.gif (3.1)

where the Inline graphic parameters represent the traditional direct effects of interest and the Inline graphic parameters, which we call auxiliary parameters, explain how the direct effects change according to missing data pattern. If the data are MCAR, then Inline graphicInline graphicInline graphic. Beyond MCAR, the traditional effects might have complex dependencies with the auxiliary parameters. An examination of the magnitude of the Inline graphic parameters provides some insight into the apparent influence of the observed missing data mechanism. If it appears that the missing data indicators contribute little to the mean model, then the MAR mechanism may be a sufficient approximation. Shrinkage methods may also be applied to the delta Inline graphic parameters to help assess which covariates appear to be influenced by non-ignorable missing data mechanisms. The shrinking and interplay of auxiliary parameters is the subject of ongoing work.

Molenberghs and others, 2008 describes a longitudinal setting where every MNAR model can be decomposed into a set of MAR models. Molenberghs and others, 2008 rightly asserts that this duality is problematic for inference about a parameter. However, as noted in the article, these representations yield different predictions and so the implications of this duality in our context are less problematic. The result is relevant here only in what is implied about the non-longitudinal setting: that predictions must match those from the pattern mixture model in order to retain predictive optimality.

Note that model 3.1 cannot be fit unless the missing predictors are imputed. When the missing data are imputed by a proper MI algorithm, the coefficients are identified by that algorithm’s imputation scheme and the auxiliary parameters become estimable under those assumptions. When conditional mean imputation is used for missing out-of-sample predictors in the MIMI model, direct substitution shows the subsequent forecasts are equivalent to PS predictions.

Adding missingness indicators to a model is often criticized. The classical missing-indicator approaches assigned a constant (often zero or the overall mean) for the missing values and augmented the design matrix with a binary indicator for each covariate with missing values. This leads to biased parameter estimates (Allison, 2001; Groenwold and others, 2012). However, when conditional mean imputation is used to impute missing predictors, the missing-indicator method will yield unbiased parameter estimates in the same scenarios where complete case estimation is unbiased (Jones, 1996; Dardanoni and others, 2011, 2015). That is, when Inline graphic and Inline graphic are conditionally independent given Inline graphic, then for any choice of imputation matrix, the ordinary least squares (OLS) estimate of (3.2) coincides with the OLS estimate of Inline graphic in the complete case model (Bartlett and others, 2014; Jones, 1996; Dardanoni and others, 2011; White and Carlin, 2010). Thus, the MIMI model is essentially an extension of Jones (1996) to a more flexible MI setting.

The connection between the MIMI model and PS can be seen through a simple rearrangement of the mean model 3.1. PS are most easily understood as projections of the true pattern-specific model into the space of observed covariates. Applying the plug-in principle, the MIMI mean model reduces to the PS when conditional mean imputation is used to impute missing covariates. Denote the imputed covariates as Inline graphic if Inline graphic is missing and Inline graphic otherwise.

Rearranging the MIMI model we have:

graphic file with name M130.gif

which is just the PS model. For illustration, we have:

graphic file with name M131.gif

Here model Inline graphic is just the submodel including only the covariate Inline graphic fit within the group of individuals who are missing the covariate Inline graphic (this is why the conditioning on Inline graphic is important). This is just Inline graphic in Section 3.1. Hence, PS and MIMI are two parameterizations of the “same” mean model. There are some differences; the MIMI model forces constant variance across all missing data patterns, whereas PS as implemented here allows the variance to vary across patterns. Essentially, PS is a series of models based on the observable total effects that can be estimated from the data at hand, while MIMI tries to reparametrize those effects into pattern-specific direct effects.

4. Simulations

We present simulations in a simple linear model case under a wide variety of missing data mechanisms. The behavior, in principle, would extend to the generalized linear model (GLM) setting and complex prediction machines. To start, we generated Inline graphic multivariate normal predictor vectors according to Inline graphic, where Inline graphic and Inline graphic, for example, are set to provide certain predictor profiles in terms of their correlation. Simulated outcomes Inline graphic are generated from various combinations of Inline graphic and Inline graphic. The pattern mixture model formulation uses Inline graphic to induce one of three missing data mechanisms, MCAR, MAR, or MNAR. The outcome Inline graphic is then generated from the MIMI mean model using the true Inline graphic values and the simulated missing data indicators. Here, the missingness may only depend on the predictors vector Inline graphic. In contrast, the selection model formulation simulates Inline graphic from the marginal model Inline graphic, where Inline graphic. Missing data indictors are then induced according to the desired mechanism. Note that here the missingness may depend on the outcome Inline graphic.

We simulated the following five missing data mechanisms for this situation: MCAR, MAR, MNAR, MARY, and MNARY. The latter two mechanisms could only be simulated in the selection model formulation. We forced the missingness data mechanism to be consistent between the in-sample and out-of-sample populations, and Inline graphic is empirically calculated to maintain the desired probability of missingness. The missing data mechanisms are described more in the Table 1 of the supplementary material available at Biostatistics online.

Parameters profiles explored were Inline graphic, Inline graphic, Inline graphic, and Inline graphic. We present here only one case that was largely representative of our findings: Inline graphic, Inline graphic, Inline graphic, and Inline graphic. For the out of sample population, we assumed one-by-one enrollment. Missing data was imputed by zero imputation, unconditional mean imputation, single conditional mean imputation using a Bayesian conditional mean model, single conditional mean imputation using a frequentist conditional mean model, or MI (predictive mean matching, 10 imputations). We fixed the imputation engine based on the in-sample population to closely mimic real-world application of these methods.

4.1. Simulation procedure

We compared the performance of PS, complete case model predictions, CCS predictions, traditional MI, and the MIMI imputation model. The full simulation procedure was as follows: (i) data are generated and missing data indicators are generated according to described; (ii) missing data are imputed; (iii) the MI model, MIMI model, CCS, and PS models are fit; (iv) step 1 is repeated to obtain a new out-of-sample population; (v) individuals are imputed one by one, using the above imputation procedures, assuming a fixed imputation engine from the in-sample population; (vi) individual predictions and performance measures are computed; (vii) steps 1 through 6 are repeated 1000 times.

A squared error loss function was used to compare performance of the approaches. For example, the squared error loss across all missing data patterns in the PS is Inline graphic where Inline graphic subjects and Inline graphic patterns. This loss is averaged over the 10 000 simulations to approximate the expected loss. Table 2 of the supplementary material available at Biostatistics online shows the average squared imputation error for predictor Inline graphic as a function of imputation strategy and missingness mechanism.

4.2. Simulation results

Results are presented in Figure 1 for the following set of parameters: Inline graphic. There were negligible differences in pattern-specific and total squared error loss for the MCAR and MAR missing data mechanism. Differences in the pattern-specific squared error were most apparent when Inline graphic was MNAR and MNARY (MNAR where the missingness is dependent on the outcome Inline graphic). For all missing data scenarios, MI and conditional mean imputations resulted in a biased parameter estimation. This bias appears most clearly in predictions for observations without missing data (blue dots). When Inline graphic is added to the MI model, the model parameters had negligible bias. However, since the out-of-sample Inline graphic is missing, the out-of-sample imputations of Inline graphic have greater bias than the imputation model in which Inline graphic is not included resulting in a higher total prediction error (e.g. see Table 4).

Fig. 1.

Fig. 1.

Simulation results set of parameters: Inline graphic. The missing data mechanisms missing at random (MAR) and missing not at random (MNAR) were generated under a pattern mixture Inline graphic (PMY) and selection model Inline graphic formulation. Triangles represent the total prediction error (TPE) summed over all missing data patterns. Circles represent the prediction error (PE) for pattern 1, where there is no missing data. Stars represent the PE for Pattern 2, in which x1 is missing.

When Inline graphic is generated from a selection model formulation, all methods perform similarly (apart from MI as described above) under the MAR missing data mechanism. When data are MNAR, PS, and the MIMI models have slightly lower total and pattern-specific squared error loss compared with the traditionally available methods. When Inline graphic is generated under the pattern mixture formulation with a MNAR missing data mechanism (MNAR PMY), PS and MIMI have both lower pattern-specific contributions to the prediction error (PE) in the pattern where Inline graphic is missing, and lower total prediction error compared with all other methods.

As might be expected, PS and CCS have different out-of-sample prediction performance when the missing data mechanism is not MAR. In fact, PS minimizes the expected prediction loss regardless of missingness mechanism, while CCS tends to rival PS only when the data are MAR. We will see that when the data are modified to induce a MNAR mechanism, PS has optimal predictions on average compared with traditional methods.

As both the strength of the missingness mechanism and the beta coefficient associated with the missing variable increase, the magnitude of the differences in methods favors PS/MIMI over all the other methods.

Table 2 of the supplementary material available at Biostatistics online of out-of-sample imputations of Inline graphic provides insight into some of the biases seen in Figure 2. When Inline graphic is included in the imputation model during model construction, parameter estimates tend to be unbiased. When Inline graphic is included during MI performed using predictive mean matching and chained equations, the imputations of Inline graphic have the largest squared error of all the imputations procedures for every missing data mechanism apart from unconditional mean imputation. Although the apparent bias in imputations for missing covariates seem small, their total contribution over all individuals can be quite significant. These results show that âŁ˜small⣙ in imputing missing predictors leads to poorer downstream predictions and larger prediction error for the outcome.

Fig. 2.

Fig. 2.

The covariates included in the SPS prediction model include partial pressure of oxygen in the arterial blood (pafi), mean blood pressure (meanbp), white blood count (wblc), albumin (alb), APACHE III respiration score (resp), temperature (temp), heart rate per minute (hrt), bilirubin (bili), creatinine (crea), and sodium (sod). There are 23 patterns present in the SUPPORT data, and missing covariates are denoted with “X”. Inline graphic is the total number of subjects in each missing data pattern. Pattern submodels (PS), multiple imputation with missingness indicators (MIMI), complete case submodels (CCS), and traditional multiple imputation (MI) methods are all compared. The top two figures are the unweighted pattern specific PE, and the bottom two figures are the pattern specific contribution to the PE in which the partial PE is weighted by the observed proportion of individuals in each pattern.

Articles have explored in detail the advantages of including Y in the imputation model (Moons and others, 2006). Using Inline graphic in the imputation model during model construction leads to unbiased estimates of regression coefficients. While this may be a fine approach during the model building stage, it is not practical in the prediction setting where the outcome is unknown. When using chained equations imputation models in which the covariate with the least amount of missing data (in these simulations Inline graphic) is imputed first, the next missing covariate of the chain (in these simulations Inline graphic) can have very biased imputations. We do not present the situation in which Inline graphic was used in the in-sample imputation model to produce unbiased regression estimates, but not included in the out-of-sample imputation model—a combination which would have less propagated imputation bias. Even though it may seem that the inclusion of Inline graphic in the imputation model will lower prediction error, careful thought and attention need to be placed on the practicality of this, as well as the statistical implications.

5. Application: SUPPORT data example

The Study to Understand Prognoses and Preferences for Outcomes and Risks of Treatments (SUPPORT) was a multi-center, two phase study, of 9105 patients. The primary goal of the study was to model survival over a 180-day period in seriously ill hospitalized adults (Knaus and others (1995)). A component of the SUPPORT prognostic model was the SUPPORT day 3 Physiology Score (SPS), a risk score created to account for various sources of health variation and co-morbidities. The SUPPORT physiology score can range from 0 to 100 and was derived from the following covariates: disease group (four levels), partial pressure of oxygen in the arterial blood, mean blood pressure, white blood count, albumin, APACHE III respiration score, temperature, heart rate per minute, bilirubin, creatinine, and sodium. The SPS model allowed mean blood pressure, white blood count, albumin, temperature, HR, bilirubin, creatinine, and sodium to have a nonlinear association with SPS, and included certain interactions with disease group and albumin, and disease group and white blood count.

For our illustrative example, we choose to model SPS score because it was a known quantity. We allowed for stochastic variation by using a less sophisticated predictive model (e.g. non-linear terms and interactions were excluded and the disease group variable was dropped). This provides a controlled setting in which we can adequately assess the behavior of our predictive models. We note that obtaining a valid SPS score was important because it was the most important prognostic factor in the SUPPORT survival model.

After excluding an individual missing SPS score, and one individual missing all covariates, 9103 individuals remained of which 3842 had complete data, 2323 were missing partial pressure of oxygen in the arterial blood, 212 were missing white blood count, 3370 were missing albumin, 2599 were missing bilirubin, and 66 were missing creatinine, resulting in 23 observed missing data patterns, and 1024 possible missing data patterns. Ten-fold cross-validation was used to compare the squared error loss of MI, CCSM, MIMI, and PS within missing data patterns, as well as total average squared error loss, weighted by proportion of individuals in each pattern.

For illustrative purposes, we dichotomize SPS at the median, and compare all methods under generalized linear models with a logistic link function. We have also incorporated a relaxed lasso procedure within the PS, permitting a more adaptive fit for the forecasting algorithm. In this case, two PS may be based on the same predictor set but have different coefficients. For this set of examples, we compared logistic scoring rules and brier scores. Both the Brier score and logarithmic scoring rules are proper scoring rules used to estimate the accuracy of a risk prediction models. The Brier score is the average squared difference between the outcome and the predicted probability of risk Inline graphic, and the logarithmic score is defined as Inline graphic, where Inline graphic and Inline graphic are the true outcome and predicted probability, respectively, for individual Inline graphic. It is known that the Brier score does not penalize predictions that give very small probabilities when they should be giving larger probabilities, and therefore, the Brier score does not necessarily make the right decision about which method of two forecasts is better (Jewson, 2008). The logarithmic scoring rule (Log-Score) rewards more extreme predictions that are in the right direction. This score can be grossly inflated by a single prediction of probability of 0 or 1 that is in the wrong direction, and heavily penalizes classifiers that are confident about an incorrect classification. The logarithmic scoring rule is a rescaling of the gold standard optimization criteria and so in a sense it is the best accuracy score to use for binary outcomes.

5.1. SUPPORT example results

For each method, ten-fold cross validation of the prediction models was implemented. For the patterns with less than or equal to Inline graphic subjects, the CCS was used, and the hybrid PS/CCS approach (as described in Section 3.2) was implemented. For the original SUPPORT data, all methods performed similarly both across and within patterns. In our simulation, we saw similar results when data were MAR, giving rise to the possibility that these data also follow a MAR mechanism. To exaggerate the missing data mechanism, we induced a MNARY mechanism by adding 25 units to individuals SPS scores who were missing the covariate partial pressure of oxygen in the arterial blood (pafi). This resulted in a large reduction in PE under PS compared with traditional MI methods and CCS, for the patterns in which partial pressure of oxygen in the arterial blood was missing.

The original data results are shown in the two sub-figures in the left of Figure 2. The total model PE does not differ between the four methods. When a MNAR mechanism is induced in the support data, as shown in the two left sub-figures, PS and MIMI outperform CCS and MI. In the patterns for which partial pressure of oxygen in the arterial blood (pafi) is missing, the benefits of PS and MIMI compared with CCS and MI are apparent. For these patterns, both the unweighted PE (Figure 2 top-right) and weighted PE (Figure 2 bottom-right) show this reduction in PE. The model PE, which is the sum of all the pattern specific contributions to the PE results in approximately a 50% reduction in PE for PS/MIMI compared with MI, and a 40% reduction in PE for PS/MIMI compared with CCS.

The same general pattern holds when PS has an underlying logistic model. For the original SUPPORT data, both the Brier score and Log-Score are approximately equal across all methods (Figure 2 of the supplementary material available at Biostatistics online). In Figure 3, when a MNARY mechanism is induced, we see slightly smaller Brier scores for PS and PS fit with a relaxed lasso (PS Relaxed Lasso) compared with CCS and MI. The PS Relaxed Lasso and the MIMI model have the smallest Log-Score compared with the other methods. It seems as though the PS Relaxed Lasso potentially has an advantage over PS in the patterns with lower membership, and this ability to choose a more parsimonious model is seen in the reduction of the Log-Score since the Log-Score more heavily penalizes incorrect predictions. Note, inducing a MNARY mechanism is more challenging for a dichotomous outcome, and may not be as strong a mechanism as seen in the linear example.

Fig. 3.

Fig. 3.

The continuous SPS measurement was dichotomized at the median, and then used as a binary outcome. The covariates included in the SPS prediction model include partial pressure of oxygen in the arterial blood (pafi), mean blood pressure (meanbp), white blood count (wblc), albumin (alb), APACHE III respiration score (resp), temperature (temp), heart rate per minute (hrt), bilirubin (bili), creatinine (crea), and sodium (sod). There are 23 patterns present in the SUPPORT data, and missing covariates are denoted with “X”. Inline graphic is the total number of subjects in each missing data pattern. Pattern submodels (PS), relaxed lasso PS, multiple imputation with missingness indicators (MIMI), complete case submodels (CCS), relaxed Lasso CCS, and traditional multiple imputation (MI) methods are all compared. The top two figures are the brier score (BS; unweighted pattern specific BS and weighted pattern specific BS), and the bottom two figures are the log-score (LS; unweighted pattern specific LS and weighted pattern specific LS). The prediction measures are cross-validated (10-fold), with nested cross-validation of the submodels.

6. Final thoughts

Statistical literature abounds with imputation methods for model inference, but there are very few practical solutions for obtaining predictions for new individuals who do not present with all of the necessary predictors. In this article, we have shown that PS provides optimal predictions for a variety of missing data mechanisms, and has large gains in computation time since external data and imputation models are no longer needed to make new predictions. PS is straightforward to implement and is easily be extended to complex prediction algorithms. In the age of big data, this is an important consideration and driving factor in most scientific contexts with big data.

As shown in our simulations and examples, there are common scenarios where the methods will perform similarly. Specifically, if there are low amounts of missing data, the missing data are from non-influential predictors, or missing data mechanisms are MCAR/MAR. In these cases, PS, MI CCS, will have very similar predictive accuracy. However, even if out-of-sample predictions are equivalent, CCS and PS both have the benefit of being computationally easy and efficient. For some specific remarks on features of PS, see Section 1.5 of the supplementary material available at Biostatistics online.

Care should be taken when developing clinical prediction models when missing data are present. Prediction models should be fit with PS and estimation could be conducted in the context of a MIMI model, since these methods are effectively robust to a wide variety of missing data mechanisms unlike MI and CCS methods.

7. Software

The SUPPORT data used in the examples, software in the form of R code and documentation is available at https://github.com/sarahmercaldo/MissingDataAndPrediction.

Supplementary Material

kxy040_Supplementary_Materials

Acknowledgments

The authors wish to thank Professors Robert Greevy, Matt Shotwell, Thomas Stewart, Melinda Aldrich, Frank Harrell, and Nathaniel Mercaldo for critical reading, helpful suggestions, and valuable feedback of the original version of the article. In addition, the authors would like to thank Eric Grogan, and the TREAT Laboratory via funding from the Department of Veterans Affairs Career Development Award (10-024), and Melinda Aldrich via funding from NIH/NCI 5K07CA172294, as well as the Department of Thoracic Surgery for supporting this work. Conflict of Interest: None declared.

References

  1. Allison, P. D. (2001). Missing Data. Thousand Oaks, CA: SAGE Publications. [Google Scholar]
  2. Bartlett, J. W., Carpenter, J. R.,Tilling, K. and Vansteelandt, S. (2014). Improving upon the efficiency of complete case analysis when covariates are MNAR. Biostatistics 15, 719–730. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Dardanoni, V., De Luca, G., Modica, S. and Peracchi, F. (2015). Model averaging estimation of generalized linear models with imputed covariates. Journal of Econometrics 184, 452–463. [Google Scholar]
  4. Dardanoni, V., Modica, S. and Peracchi, F. (2011). Regression with imputed covariates: a generalized missing-indicator approach. Journal of Econometrics 162, 362–368. [Google Scholar]
  5. Groenwold, R. H. H., White, I. R.,Donders, A. R. T. and Carpenter, J. R. (2012). Missing covariate data in clinical research: when and when not to use the missing-indicator method for analysis. Canadian Medical Association Journal 184, 1265–1269. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Harrell, F. E. (2013, March). Regression Modeling Strategies: With Applications to Linear Models, Logistic Regression, and Survival Analysis. New York: Springer Science & Business Media. [Google Scholar]
  7. Hastie, T., Tibshirani, R. and Friedman, J. (2009). The Elements of Statistical Learning, Springer Series in Statistics New York, NY: Springer New York. [Google Scholar]
  8. Janssen, K. J., Donders, A. R.,Harrell, F. E., Jr,Vergouwe, Y., Chen, Q., Grobbee, D. E. and Moons, K. G. (2010). Missing covariate data in medical research: to impute is better than to ignore. Journal of Clinical Epidemiology 63, 721–727. [DOI] [PubMed] [Google Scholar]
  9. Janssen, K. J., Vergouwe, Y., Donders, A. R.,Harrell, F. E.,Chen, Q., Grobbee, D. E. and Moons, K. G. (2009). Dealing with missing predictor values when applying clinical prediction models. Clinical Chemistry 55, 994–1001. [DOI] [PubMed] [Google Scholar]
  10. Jewson, S. (2008). The problem with the Brier score. arXiv:physics/0401046 [Available online at http://arxiv.org/abs/physics/0401046v1]. [Google Scholar]
  11. Jones, M. P. (1996). Indicator and stratification methods for missing explanatory variables in multiple linear regression. Journal of the American Statistical Association 91, 222–230. [Google Scholar]
  12. Knol, M. J., Janssen, K. J. M.,Donders, A. R. T.,Egberts, A. C. G.,Heerdink, E. R.,Grobbee, D. E.,Moons, K. G. M. and Geerlings, M. I. (2010). Unpredictable bias when using the missing indicator method or complete case analysis for missing confounder values: an empirical example. Journal of Clinical Epidemiology 63, 728–736. [DOI] [PubMed] [Google Scholar]
  13. Little, R. J. and Wang, Y. (1996). Pattern-mixture models for multivariate incomplete data with covariates. Biometrics 52, 98–111. [PubMed] [Google Scholar]
  14. Little, R. J. A. (1993). Pattern-mixture models for multivariate incomplete data. Journal of the American Statistical Association 88, 125. [Google Scholar]
  15. Little, R. J. A. and Rubin, D. B. (2014). Statistical Analysis with Missing Data. New York: John Wiley & Sons. [Google Scholar]
  16. Molenberghs, G., Beunckens, C., Sotto, C. and Kenward, M. G. (2008). Every missingness not at random model has a missingness at random counterpart with equal fit. Journal of the Royal Statistical Society. Series B. Statistical Methodology 70, 371–388. [Google Scholar]
  17. Moons, K. G., Donders, R. A.,Stijnen, T. and Harrell, F. E. (2006). Using the outcome for imputation of missing predictor values was preferred. Journal of Clinical Epidemiology 59, 1092–1101. [DOI] [PubMed] [Google Scholar]
  18. Knaus, W. A., Harrell, F. E., Jr,Lynn, J., Goldman, L., Phillips, R. S.,Connors, A. F., Jr,Dawson, N. V.,Fulkerson, W. J., Jr,Califf, R. M.,Desbiens, N.. and others (1995). The SUPPORT prognostic model. Objective estimates of survival for seriously ill hospitalized adults. Study to understand prognoses and preferences for outcomes and risks of treatments. Ann Intern Med, 122, 191–203. [DOI] [PubMed] [Google Scholar]
  19. Rubin, D. B. (2009). Multiple Imputation for Nonresponse in Surveys, Wiley Series in Probability and Statistics. Hoboken, NJ, USA: John Wiley & Sons. [Google Scholar]
  20. Shmueli, G. (2010). To explain or to predict? Statistical Science 25, 289–310. [Google Scholar]
  21. van Buuren, S. (2012). Flexible Imputation of Missing Data, Volume 20125245, Chapman & Hall/CRC Interdisciplinary Statistics Series Boca Raton, FL: CRC Press. [Google Scholar]
  22. Vergouwe, Y., Royston, P., Moons, K. G. M. and Altman, D. G. (2010). Development and validation of a prediction model with missing predictor data: a practical approach. Journal of Clinical Epidemiology 63, 205–214. [DOI] [PubMed] [Google Scholar]
  23. White, I. R. and Carlin, J. B. (2010). Bias and efficiency of multiple imputation compared with complete-case analysis for missing covariate values. Statistics in Medicine 29, 2920–2931. [DOI] [PubMed] [Google Scholar]
  24. Wood, A. M., Royston, P. and White, I. R. (2015). The estimation and use of predictions for the assessment of model performance using large samples with multiply imputed data. Biometrical Journal 57, 614–632. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

kxy040_Supplementary_Materials

Articles from Biostatistics (Oxford, England) are provided here courtesy of Oxford University Press

RESOURCES