- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I imputed some survival data and want to get a pooled estimate for the interaction term included in the following model. The PROC PHREG model runs fine, and the interaction is statistically significant. The PROC MIANALYZE runs perfectly fine without the interaction term included. When I run the PROC MIANALYZE with the interaction term, it draws the following error:
proc phreg data = mi;
class new_surgery1 (ref = "0") timetrying (ref = "0") prevpreg_cl (ref="1") prev_treat (ref="0")/PARAM=REF;
model (start1,stop1)*censored(1) = new_surgery1 timetrying prevpreg_cl prev_treat new_age_at_consent new_surgery1*timetrying/ ties=efron rl;
by _imputation_;
ods output ParameterEstimates=a_preg;
HAZARDRATIO NEW_SURGERY1;
run;
proc mianalyze parms(classvar=ClassVal)=a_preg;
class new_surgery1 timetrying prevpreg_cl prev_treat;
modeleffects new_surgery1 timetrying prevpreg_cl prev_treat new_age_at_consent TIMETRYING*NEW_SURGERY1;
run;
Thanks!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your response!
I actually just discovered in the output dataset that SAS shortened the interaction name to timetryin*new_surgery1. I included the new name in the PROC MIANALYZE and it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Could it be as simple as the variable is called "new_surgery1*timetrying" in the MODEL statement for PHREG, but is called "TIMETRYING*NEW_SURGERY1" in the MODELEFFECTS statement for MIANALYZE? MIANALYZE can be picky about things like the variables not having identical names (including case on occastion).
SteveDenham
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your response!
I actually just discovered in the output dataset that SAS shortened the interaction name to timetryin*new_surgery1. I included the new name in the PROC MIANALYZE and it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content