- Joined
- Apr 26, 2003
- Messages
- 943
- Reaction score
- 155
Do any of you out there use SAS? If so, do you know how to do multiple imputation? I believe I have the proper code and am running it properly but I am not sure how to combine the 5 imputations into one and then import that data into my main dataset.
Below is my syntax (based on the Syntax from Tabachnick and Fidell)
*Conduct multiple imputation to impute values for SAStot ;
*step 1, Tabachnick and Fidell p 181 ;
proc mi data=sss.analysis seed=37851 out=sss.imputout;
var ISItot DDNtot CESDtot PCLtot SAStot ;
run ;
*step 2, Tabachnick and Fidell p 183 ;
proc reg data=sss.imputout outest=REGOUT covout ;
model SBQ4sqrt = ISItot DDNtot CESDtot PCLtot SAStot ;
by _Imputation_;
run;
*step 3, Tabachnick and Fidell p 186 ;
proc mianalyze data=regout ;
var Intercept ISItot DDNtot CESDtot PCLtot SAStot;
run ;
Below is my syntax (based on the Syntax from Tabachnick and Fidell)
*Conduct multiple imputation to impute values for SAStot ;
*step 1, Tabachnick and Fidell p 181 ;
proc mi data=sss.analysis seed=37851 out=sss.imputout;
var ISItot DDNtot CESDtot PCLtot SAStot ;
run ;
*step 2, Tabachnick and Fidell p 183 ;
proc reg data=sss.imputout outest=REGOUT covout ;
model SBQ4sqrt = ISItot DDNtot CESDtot PCLtot SAStot ;
by _Imputation_;
run;
*step 3, Tabachnick and Fidell p 186 ;
proc mianalyze data=regout ;
var Intercept ISItot DDNtot CESDtot PCLtot SAStot;
run ;