Hello Everyone
I am trying to learn Multiple Imputation to address the problems of missing values in my data and wanted to know if my approach is correct:
Data set abc:
Response Variable: Target_B (Binary)
(Do not have any missing for response, but have missing for all the predictors; interval & Categorical)
Predictors: Interval var - demage, medhomevalue, giftavg, promcnt.
Class Var: DemGender(Binary), Statusnk (Ordinal)
/* SAS CODE For Multiple Imputation
*/ Step 1: proc mi data = abc out = miout nimpute = 5 seed = 35399;
class Target_B DemGender statusnk;
var Demage medhomevalue giftavg promcnt;
run;
Step 2:
Proc Logistic data = miout outest = outreg covout;
class Target_B DemGender statusnk;
model Target_B (Event = '1') = DemGender statusnk Demage medhomevalue giftavg promcnt/
selection = stepwise fast SLStay = 0.05 SLEntry = 0.05 ;
by _imputation_;
ods output parameterestimates = lgsparms;
run;
Step3: Lets Say the variables selected by stepwise are Demage DemGender(Categorical) & giftavg
Proc mianalyze data = outreg;
var Demage Demgender Giftavg;
run;