[R] Coxph with factors

From: Kylie-Anne Richards <kar_at_itga.com.au>
Date: Thu 14 Jul 2005 - 16:46:29 EST


Hello,

I am fitting a coxph model with factors. I am running into problems when using 'survfit'. I am unsure how R is treating the factors when I fit, say:
> DATA<-data.frame(time.sec,done,f.pom=factor(f.pom),po,vo)

> final<-coxph(Surv(time.sec,done)~f.pom*vo+po,data=DATA)
> final.surv<-survfit((final), individual=T,conf.type="log-log")

> print(final.surv)

Also, when I trying using survfit with presepecified values for the covariates and factor (i.e. '0' to get the baseline) I get an error message, which I think is a result of my inability to specify the factors in the correct manner.

I would very much appreciate if somebody can help me out.

Thanks very much,

Kylie



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 14 16:50:35 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:38 EST