Message-ID: <1328667105354-4367514.post@n4.nabble.com>
Date: 2012-02-08T02:11:45Z
From: summer
Subject: need help with understanding coxph encoding
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.