Hi SAS friends,
I have a question about estimating main hazard ratios in Cox models with interactions.
Weberian asked a slighltly similar question (Hazardratio statement, interaction in Proc Phreg (cox-regression)) but it does not answer this.
I am looking at the interactive effects of X according to Y on death. Here is the code:
proc phreg data=Mortality_M3_72 covs(aggregate);
class X(ref=first) Y(ref=first);
model (monthfrombl, monthfrombl_stop)*death(0)= X|Y /RL TIES=EFRON;
id scrssn_n;
hazardratio "Effect of X in Y groups" X/diff=ref at(Y=all);
run;
I want both overall hazard ratio and interactive hazard ratio from the same model
I only get hazard ratios of X according to Y and vice versa. Here is the output
For instance, I want X=1vs0 in Y =all
How should I proceed?
Thanks for your help!
I have a question about estimating main hazard ratios in Cox models with interactions.
Weberian asked a slighltly similar question (Hazardratio statement, interaction in Proc Phreg (cox-regression)) but it does not answer this.
I am looking at the interactive effects of X according to Y on death. Here is the code:
proc phreg data=Mortality_M3_72 covs(aggregate);
class X(ref=first) Y(ref=first);
model (monthfrombl, monthfrombl_stop)*death(0)= X|Y /RL TIES=EFRON;
id scrssn_n;
hazardratio "Effect of X in Y groups" X/diff=ref at(Y=all);
run;
I want both overall hazard ratio and interactive hazard ratio from the same model
I only get hazard ratios of X according to Y and vice versa. Here is the output


For instance, I want X=1vs0 in Y =all
How should I proceed?
Thanks for your help!
Attachments
-
155 KB Views: 1
-
71.5 KB Views: 1