[R] Coxph with factors

Dieter Menne dieter.menne at menne-biomed.de
Thu Jul 14 17:36:20 CEST 2005


Kylie-Anne Richards <kar <at> itga.com.au> writes:

> 
> 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)
....

Better chances to get a reply when you tell us what problems you are running 
into.

Dieter Menne




More information about the R-help mailing list