Re: [R] Problem in anova with coxph object

2008-01-08 Thread Matthias Gondan
Peter Dalgaard schrieb: > Matthias Gondan wrote: > >> Dear R users, >> >> I noticed a problem in the anova command when applied on >> a single coxph object if there are missing observations in >> the data: >> ... >> In the documentation for anova.coxph, there is a warning that >> >>

Re: [R] Problem in anova with coxph object

2008-01-08 Thread Peter Dalgaard
Matthias Gondan wrote: > Dear R users, > > I noticed a problem in the anova command when applied on > a single coxph object if there are missing observations in > the data: > > This example code was run on R-2.6.1: > > > library(survival) > > data(colon) > > colondeath = colon[colon$etype==2, ]

[R] Problem in anova with coxph object

2008-01-08 Thread Matthias Gondan
Dear R users, I noticed a problem in the anova command when applied on a single coxph object if there are missing observations in the data: This example code was run on R-2.6.1: > library(survival) > data(colon) > colondeath = colon[colon$etype==2, ] > m = coxph(Surv(time, status) ~ rx + sex