The MI Procedure

Example 76.9 MCMC Method

(View the complete code for this example.)

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 six imputations:

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

The "Model Information" table in Output 76.9.1 describes the method used in the multiple imputation process. When you use the CHAIN=MULTIPLE option, 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.

Output 76.9.1: Model Information

The MI Procedure

Model Information
Data SetWORK.FITNESS1
MethodMCMC
Multiple Imputation ChainMultiple Chains
Initial Estimates for MCMCEM Posterior Mode
StartStarting Value
PriorJeffreys
Number of Imputations40
Number of Burn-in Iterations200
Seed for random number generator21355417


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 method.

The "Missing Data Patterns" table in Output 76.9.2 lists distinct missing data patterns with corresponding statistics.

Output 76.9.2: Missing Data Patterns

Missing Data Patterns
GroupOxygenRunTimeRunPulseFreqPercentGroup Means
OxygenRunTimeRunPulse
1XXX2167.7446.35381010.809524171.666667
2XX.412.9047.10950010.137500.
3X..39.6852.461667..
4.XX13.23.11.950000176.000000
5.X.26.45.9.885000.


When you use the ITPRINT option within the INITIAL=EM option, the procedure displays the "EM (Posterior Mode) Iteration History" table in Output 76.9.3.

Output 76.9.3: EM (Posterior Mode) Iteration History

EM (Posterior Mode) Iteration History
_Iteration_-2 Log L-2 Log PosteriorOxygenRunTimeRunPulse
0254.482800282.90954947.10407710.554858171.381669
1255.081168282.05158447.10407710.554857171.381652
2255.271408282.01748847.10407710.554857171.381644
3255.318622282.01537247.10400210.554523171.381842
4255.330259282.01523247.10386110.554388171.382053
5255.333161282.01522247.10379710.554341171.382150
6255.333896282.01522247.10377410.554325171.382185
7255.334085282.01522247.10376610.554320171.382196


When you use the DISPLAYINIT option in the MCMC statement, the "Initial Parameter Estimates for MCMC" table in Output 76.9.4 displays the starting mean and covariance estimates used in the MCMC method. The same starting estimates are used in the MCMC method 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 method to generate different parameter estimates from the EM algorithm for the MCMC method.

Output 76.9.4: Initial Parameter Estimates

Initial Parameter Estimates for MCMC
_TYPE__NAME_OxygenRunTimeRunPulse
MEAN 47.10376610.554320171.382196
COVOxygen24.549967-5.726112-15.926036
COVRunTime-5.7261121.7814073.124798
COVRunPulse-15.9260363.12479883.164045


Output 76.9.5 and Output 76.9.6 display variance information and parameter estimates, respectively, from the multiple imputation.

Output 76.9.5: Variance Information

Variance Information (40 Imputations)
VariableVarianceDFRelative
Increase
in Variance
Fraction
Missing
Information
Relative
Efficiency
BetweenWithinTotal
Oxygen0.0208870.9174520.93886127.5290.0233360.0228300.999430
RunTime0.0018970.0669310.06887527.3710.0290450.0282640.999294
RunPulse2.2400723.6741885.97026216.2730.6249200.3892010.990364


Output 76.9.6: Parameter Estimates

Parameter Estimates (40 Imputations)
VariableMeanStd Error95% Confidence LimitsDFMinimumMaximumMu0t for H0:
Mean=Mu0
Pr > |t|
Oxygen47.1069180.96894945.120649.093327.52946.81774847.42963350.000000-2.990.0059
RunTime10.5585970.26244010.020511.096727.37110.46754110.65941210.0000002.130.0424
RunPulse171.1502012.443412165.9775176.322916.273167.120956174.569040180.000000-3.620.0022