The MI Procedure

Example 77.12 Saving and Using Parameters for MCMC

(View the complete code for this example.)

This example uses the MCMC method with multiple chains as specified in Example 77.9. It saves the parameter values used for each imputation in an output data set of type EST called Miest. This output data set can then be used to impute missing values in other similar input data sets. The following statements invoke the MI procedure and specify the MCMC method with multiple chains to create 40 imputations:

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

The following statements list the parameters used for the imputations in Output 77.12.1. Note that the data set includes observations with _TYPE_=‘SEED’ which contains the seed to start the next random number generator.

proc print data=miest(obs=15);
   title 'Parameters for the Imputations';
run;

Output 77.12.1: OUTEST Data Set

Parameters for the Imputations

Obs_Imputation__TYPE__NAME_OxygenRunTimeRunPulse
11SEED 825240167.00825240167.00825240167.00
21PARM 46.7710.47169.41
31COVOxygen30.59-8.32-50.99
41COVRunTime-8.322.9017.03
51COVRunPulse-50.9917.03200.09
62SEED 1895925872.001895925872.001895925872.00
72PARM 47.4110.37173.34
82COVOxygen22.35-4.44-21.18
92COVRunTime-4.441.761.25
102COVRunPulse-21.181.25125.67
113SEED 137653011.00137653011.00137653011.00
123PARM 48.2110.36170.52
133COVOxygen23.59-5.25-19.76
143COVRunTime-5.251.665.00
153COVRunPulse-19.765.00110.99


The following statements invoke the MI procedure and use the INEST= option in the MCMC statement:

proc mi data=Fitness1 mu0=50 10 180;
   mcmc inest=miest;
   var Oxygen RunTime RunPulse;
run;

The "Model Information" table in Output 77.12.2 describes the method used in the multiple imputation process. The remaining tables for the example are identical to the tables in Output 77.9.2, Output 77.9.4, Output 77.9.5, and Output 77.9.6 in Example 77.9.

Output 77.12.2: Model Information

The MI Procedure

Model Information
Data SetWORK.FITNESS1
MethodMCMC
INEST Data SetWORK.MIEST
Number of Imputations40


Last updated: February 13, 2019