|
Chapter Contents |
Previous |
Next |
| The MI Procedure |
This example uses the MCMC method with a single chain. It also displays time-series and autocorrelation plots to check convergence for the single chain.
The following statements use the MCMC method to create an iteration plot for the successive estimates of the mean of Oxygen. Note that iterations during the burn-in period are indicated with negative iteration numbers. These statements also create an autocorrelation function plot for the variable Oxygen.
proc mi data=FitMiss seed=37921 noprint nimpute=2;
mcmc timeplot(mean(Oxygen)) acfplot(mean(Oxygen));
var Oxygen RunTime RunPulse;
run;
Output 9.6.1: Time-Series Plot for Oxygen
|
|
The following statements use display options to modify the autocorrelation function plot for Oxygen.
proc mi data=FitMiss seed=37921 noprint nimpute=2;
mcmc acfplot(mean(Oxygen) / symbol=dot lref=2);
var Oxygen RunTime RunPulse;
run;
Output 9.6.3: Modified Autocorrelation Function Plot for Oxygen
|
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.