R vs SAS Reference-Based Multiple Imputation (joint modelling): Continuous Data

Reference-Based Multiple Imputation Comparison

The following table shows the types of reference-based multiple imputation (rbmi), the capabilities of each language, and whether or not the results from each language match. The following holds for data that are assumed to be normally distributed. In this comparison, we used the rbmi package in R and the so-called Five macros in SAS.

The following assumptions are made in both languages:

  • Equal unstructured covariance matrix across treatment groups

  • Same covariates formula for the imputation and analysis model

  • Similar number of MCMC tuning parameters (burn-in, thinning) was used in the MCMC

  • The one intermittent missingness was imputed under MAR assumption

Analysis Supported in R Supported in SAS Results Match Notes
rbmi - MI MAR Yes Yes Yes Results will be (slightly) different given the randomness in multiple imputations
rbmi - MI MNAR Copy Reference Yes Yes Yes Results will be (slightly) different given the randomness in multiple imputations
rbmi - MI MNAR Jump to Reference Yes Yes Yes Results will be (slightly) different given the randomness in multiple imputations
rbmi - MI MNAR Copy Increments in Reference Yes Yes Yes Results will be (slightly) different given the randomness in multiple imputations

Comparison Results

The following figure compares the contrast estimate (and associated 95% confidence interval) for the explored dataset per number of multiple imputations M (ie, 500, 2000 and 5000). Note that the complete case analysis is presented across M for completeness. For the contrast estimate the range of the difference between R and SAS results are [-0.29 to 2.21]%, [0.0 to 0.75]% and [-0.25 to 0.19]% for respectively M=500, 2000, 5000.

CC=Complete Case; MAR=Missing at Random; MNAR=Missing not at Random, CIR=Copy Increments in Reference; CR=Copy Reference; JR=Jump to Reference

Summary and Recommendation

The computational time for M=500 was similar between the rbmi package and the Five macros with 26 and 23 seconds. However, for M=2000 the Five macros (44 seconds) was approximately double as fast than the rbmi package (92 seconds).