Hi,
Could someone possibly give me some (simple!) advice on how to test for interactions between variables within a model after using multiple imputation?
(I have found various pages related to this but I'm afraid I can't for the life of me understand them! Also apologies - can't use dataex as my code is on a secure intranet site).
Without multiple imputed data, I have looked for whether the type of heart attack someone has (MItype) modifies the association between their degree of kidney impairment (ordinal variable ckdstage) and death within 30 days of a heart attack (death_30days), like this:
logistic death_30days i.ckdstage MItype ethnicity i.age_grp sex.....
estimate store A
logistic death_30days i.ckdstage##MItype ethnicity i.age_grp sex....
estimate store B
lrtest A B
However, this no longer works now that I have used multiple imputation to account for missing data in ethnicity (one of the variables in the model above). I have tried understanding something I came across about incorporating the interaction variable in the imputation model and also about using "mim" and then "milrtest" - but I've failed(!).
Could someone possible tell me how I could do this? I'm unfortunately a terribly slow STATA learner!
Thankyou so much
Jemima
Could someone possibly give me some (simple!) advice on how to test for interactions between variables within a model after using multiple imputation?
(I have found various pages related to this but I'm afraid I can't for the life of me understand them! Also apologies - can't use dataex as my code is on a secure intranet site).
Without multiple imputed data, I have looked for whether the type of heart attack someone has (MItype) modifies the association between their degree of kidney impairment (ordinal variable ckdstage) and death within 30 days of a heart attack (death_30days), like this:
logistic death_30days i.ckdstage MItype ethnicity i.age_grp sex.....
estimate store A
logistic death_30days i.ckdstage##MItype ethnicity i.age_grp sex....
estimate store B
lrtest A B
However, this no longer works now that I have used multiple imputation to account for missing data in ethnicity (one of the variables in the model above). I have tried understanding something I came across about incorporating the interaction variable in the imputation model and also about using "mim" and then "milrtest" - but I've failed(!).
Could someone possible tell me how I could do this? I'm unfortunately a terribly slow STATA learner!
Thankyou so much
Jemima
Comment