Macro Programs

Bayesian Mediation Analysis

  • SAS macro that performs a Bayesian mediation analysis with missing data. 
  • Click here to download a manuscript (Enders, Fairchild, & MacKinnon, in review) that describes the procedure and the SAS macro.
  • Click here to download a zip archive containing the SAS macro programs and the data from Enders, Fairchild, and MacKinnon (in press).

Bollen-Stine Bootstrap

SAS macro that performs the Bollen-Stine bootstrap with missing data.  Note that this procedure is now available in Mplus and EQS.

  • Click here to download a zip archive containing the macro program and other supporting documents.

Little's MCAR Test 

  • SAS macro that computes a chi-square test of the missing completely at random (MCAR) mechanism, as outlined in Little's (1998) JASA article.  See pages 19-21 in the book for additional details.
  • Click here to download the macro.

SPSS Multiple Imputation Diagnostics

  • SPSS macro that creates time-series (trace) plots following multiple imputation.  The macro also computes and prints a summary table of Gelman and Rubin's potential scale reduction factor diagnostic.
  • Click here to download the macro and the accompanying SPSS files.
  • Click here to download a slideshow that demonstrates the macro.

SAS Pooled Likelihood Ratio Test for Multiple Imputation

  • SAS macro that computes a pooled likelihood ratio test (the D3 statistic) comparing two nested models.  Handles single- or two-level models estimated from PROC MIXED.
  • Click here to access the macro and supporting documentation.
Questions or suggestions? Email Craig Enders