[R] Hazard ratio
Ashta
sewashm at gmail.com
Thu Dec 10 14:33:51 CET 2009
Hi all,
I want to calculate hazard ratio within each covariate
Example, one covariate has 3 classes (1,2 and 3) and x2 has 2 classes
I want to compare the relative risk ratio within each class of the covariate.
How do I get this result ? .
The other question is that how do I interpret the second column in
the second panel (i.e., exp(-coef))
I used the model
coxfit1 <- coxph(Surv(sdat$time, sdat$cens)~ y1+x2)
coef exp(coef) se(coef) z Pr(>|z|)
y1 -0.024084 0.976204 0.003077 -7.828 5.00e-15 ***
x2 0.036161 1.036822 0.083921 0.431 0.6665
exp(coef) exp(-coef) lower .95 upper .95
y1 0.9762 1.0244 0.9703 0.9821
x2 1.0368 0.9645 0.8796 1.2222
Thanks in advance
More information about the R-help
mailing list