Hello SAS friends, I have a question that I cannot solve.
I am about to use cox-regression to estimate the interaction between two binary variables: Disease (1,0) and Drug (1,0).
Disease: 1=Disease, 0=No disease
Drug: 1=Drug, 0=No drug
This make the interaction a “2x2 table” (as below). Here is the SAS code:
Here is the output:
The second table only presents those with Disease =1 and Drug=1 and 0. But how do I get those without disease and with and without drug?
Question: How do I do to get all Hazard Ratios estimates in the 2x2 table? Something with the HazardRatio statement?
Thanks!
Robin
I am about to use cox-regression to estimate the interaction between two binary variables: Disease (1,0) and Drug (1,0).
Disease: 1=Disease, 0=No disease
Drug: 1=Drug, 0=No drug
This make the interaction a “2x2 table” (as below). Here is the SAS code:
Code:
proc phreg data=Data;
class Drug(ref='0') Disease(ref='0') /param=glm;
model Duration*Event(0) = Disease Drug Disease|Drug / ties=Efron rl;
hazardratio 'T1' Disease / at (Drug=all) ; run;

The second table only presents those with Disease =1 and Drug=1 and 0. But how do I get those without disease and with and without drug?

Question: How do I do to get all Hazard Ratios estimates in the 2x2 table? Something with the HazardRatio statement?
Thanks!
Robin