Kaz's SAS, HLM, and Rasch Model
Understanding Missing Value Pattern
Home
Large National Data Sets
Kaz Library
SAS manuals
What is "error"?
Rasch Model
HLM
SAS PROC NLMIXED and GLIMMIX
Factor Analysis
Reading output via SAS
Excel functions for Statistical Analysis
Essays on learning statistics
Statistics in Japanese
My profile
My SAS questions and SAS's responses
My work tool box
Using PROC MI to understand the pattern of missing values. 

data temp;set sashelp.class;

/*Create missing intentionally*/

if name ="Henry" or name="Judy" then do;

weight =.;

end;

run;

 

ods trace on;

proc mi data=temp nimpute=0 out=result;

var

weight height;

em maxiter=1;

mcmc initial=em(maxiter=1);

ods select misspattern;

ods output    MissPattern=kaz;

run;

 

                                 The MI Procedure

 

                               Missing Data Patterns

 

                                                      ---------Group Means--------

 Group  Weight Height  Freq     Percent          Weight          Height

 

     1  X      X       17       89.47      100.470588       62.152941

     2  .      X        2       10.53               .       63.900000

Copyright 2005 KU
For information inquiry (AT) estat.us