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.789695.n4.nabble.com/need-help-with-understanding-coxph-encoding-tp4367514p4369604.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to