Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The MI Procedure

Example 9.4: MCMC Method

This example uses the MCMC method to impute missing values for a data set with an arbitrary missing pattern. The following statements invoke the MI procedure and specify the MCMC method with three imputations.

   proc mi data=FitMiss seed=55417 nimpute=3 mu0=50 10 180;
      mcmc chain=multiple displayinit initial=em(itprint);   
      var Oxygen RunTime RunPulse; 
   run;

Output 9.4.1: Model Information
 
The MI Procedure

Model Information
Data Set WORK.FITMISS
Method MCMC
Multiple Imputation Chain Multiple Chains
Initial Estimates for MCMC EM Posterior Mode
Start Starting Value
Prior Jeffreys
Number of Imputations 3
Number of Burn-in Iterations 200
Seed for random number generator 55417

With CHAIN=MULTIPLE, the procedure uses multiple chains and completes the default 200 burn-in iterations before each imputation. The 200 burn-in iterations are used to make the iterations converge to the stationary distribution before the imputation.

By default, the procedure uses a noninformative Jeffreys prior to derive the posterior mode from the EM algorithm as the starting values for the MCMC process.

The following "Missing Data Patterns" table lists distinct missing data patterns with corresponding statistics.

Output 9.4.2: Missing Data Patterns
 
The MI Procedure

Missing Data Patterns
Group Oxygen RunTime RunPulse Freq Percent Group Means
Oxygen RunTime RunPulse
1 X X X 21 67.74 46.353810 10.809524 171.666667
2 X X . 4 12.90 47.109500 10.137500 .
3 X . . 3 9.68 52.461667 . .
4 . X X 1 3.23 . 11.950000 176.000000
5 . X . 2 6.45 . 9.885000 .

With the ITPRINT option in INITIAL=EM, the procedure also displays the "EM (Posterior Mode) Iteration History" table.

Output 9.4.3: EM (Posterior Mode) Iteration History
 
The MI Procedure

EM (Posterior Mode) Iteration History
_Iteration_ -2 Log L -2 Log Posterior Oxygen RunTime RunPulse
0 254.482800 282.909590 47.104086 10.554864 171.381796
1 255.081159 282.051588 47.104079 10.554859 171.381708
2 255.271405 282.017488 47.104077 10.554858 171.381669
3 255.318621 282.015372 47.104002 10.554524 171.381853
4 255.330259 282.015232 47.103861 10.554388 171.382058
5 255.333160 282.015222 47.103797 10.554341 171.382152
6 255.333896 282.015222 47.103774 10.554325 171.382186
7 255.334085 282.015222 47.103766 10.554320 171.382197

With the DISPLAYINIT option in the MCMC statement, the following "Initial Parameter Estimates for MCMC" table displays the starting mean and covariance estimates used in MCMC. The same starting estimates are used for the MCMC process for multiple chains because the EM algorithm is applied to the same data set in each chain. You can explicitly specify different initial estimates for different imputations, or you can use the bootstrap to generate different parameter estimates from the EM algorithm for the MCMC process.

Output 9.4.4: Initial Parameter Estimates
 
The MI Procedure

Initial Parameter Estimates for MCMC
_TYPE_ _NAME_ Oxygen RunTime RunPulse
MEAN   47.103766 10.554320 171.382197
COV Oxygen 24.549968 -5.726112 -15.926034
COV RunTime -5.726112 1.781407 3.124798
COV RunPulse -15.926034 3.124798 83.164044

The following two tables display variance information and parameter estimates from the multiple imputation.

Output 9.4.5: Variance Information
 
The MI Procedure

Multiple Imputation Variance Information
Variable Variance DF Relative
Increase
in Variance
Fraction
Missing
Information
Between Within Total
Oxygen 0.009200 0.987880 1.000148 27.778 0.012418 0.012414
RunTime 0.002255 0.069112 0.072119 26.388 0.043503 0.043351
RunPulse 0.043126 3.650388 3.707889 27.653 0.015752 0.015744

Output 9.4.6: Parameter Estimates
 
The MI Procedure

Multiple Imputation Parameter Estimates
Variable Mean Std Error 95% Confidence Limits DF Minimum Maximum Mu0 t for H0:
Mean=Mu0
Pr > |t|
Oxygen 47.198228 1.000074 45.1489 49.2475 27.778 47.132351 47.308274 50.000000 -2.80 0.0092
RunTime 10.510911 0.268549 9.9593 11.0625 26.388 10.456079 10.538446 10.000000 1.90 0.0681
RunPulse 172.113649 1.925588 168.1670 176.0603 27.653 171.943144 172.344920 180.000000 -4.10 0.0003

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.