In a regression model, specifically an stcox model, is there a way to fit an interaction between two categorical variables at only the categorical levels where the interaction is significant?
If I test for significant interactions between my variables, I find that that there is a significant interaction between dose at the highest dose (dose==4) and age at enrolment at the older age group (agegrp==5), at every other level the P>|z| > 0.3.
I currently have the code set up to include the main effect and the interaction effect,
but this estimates the hazard ration between every other level, is there a way to limit the interaction only to agegrp==5#dose==4?
If I test for significant interactions between my variables, I find that that there is a significant interaction between dose at the highest dose (dose==4) and age at enrolment at the older age group (agegrp==5), at every other level the P>|z| > 0.3.
I currently have the code set up to include the main effect and the interaction effect,
HTML Code:
stcox sex agegrp treat dose dose#agegrp

Comment