Thank you. The factor is useful.
What if I did not factor it,and the x is listed as 2 2 1 1 1 1 2 2 2 and so
on. How would I know the HR for coxph is group2/group1 or group1/group2? I
understand it's just inverse but how can I identify the exact HR?
--
View this message in context:
http://r.7896
Coxph is a regression model, so the coefficient for "x" is the change in
prediction value for each 1 unit change in x. Just like regression, it
won't matter if you code it as 0/1 or 1/2 or 105 vs 106. If you code it
as 0 vs 10 the coefficient will be divided by 10 though.
The relative hazard
On Feb 7, 2012, at 9:11 PM, summer wrote:
Hi, in coxph,
coxph(Surv(time, status)~x,data=alm).
How to encode x? For example, if x has two groups, the treatment
group and
control group. if I encode them as 1 and 2. Is the HR results
treatment/control? What if I encode them as 0 and 1. I am co
Hi, in coxph,
coxph(Surv(time, status)~x,data=alm).
How to encode x? For example, if x has two groups, the treatment group and
control group. if I encode them as 1 and 2. Is the HR results
treatment/control? What if I encode them as 0 and 1. I am confused with how
survival package works for HR. W
4 matches
Mail list logo