[R] categorical varibles in coxph

Lisa Wang lisawang at uhnres.utoronto.ca
Fri Oct 15 21:39:17 CEST 2004


Hello,

I wonder when I do coxph in R:

coxph( Surv(start, stop, event) ~ x, data=test)

If x is a categorical varible (1,2,3,4,5), should I creat four dummy
varibles for it? if yes, how can I get the overall p value on x other
than for each dummy variable?

Thanks

Lisa Wang

Princess Margaret Hospital
Phone 416 946 4501




More information about the R-help mailing list