[R] need help with understanding coxph encoding
summer
summerwindwrx at hotmail.com
Wed Feb 8 03:11:45 CET 2012
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. What should I do to get a treatment/control
HR?
Thank you.
--
View this message in context: http://r.789695.n4.nabble.com/need-help-with-understanding-coxph-encoding-tp4367514p4367514.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list