Re: [R] ANOVA for stratified cox regression

2011-03-10 Thread Thomas Lumley
On Fri, Mar 11, 2011 at 8:25 AM, Brian McLoone wrote: > This is a follow-up to a query that was posted regarding some problems that > emerge when running anova analyses for cox models, posted by Mathias Gondan: > > Matthias Gondan wrote: > >>* Dear List,*>**>* I have tried a stratified Cox Regress

[R] ANOVA for stratified cox regression

2011-03-10 Thread Brian McLoone
This is a follow-up to a query that was posted regarding some problems that emerge when running anova analyses for cox models, posted by Mathias Gondan: Matthias Gondan wrote: >* Dear List,*>**>* I have tried a stratified Cox Regression, it is working >fine, except for*>* the "Anova"-Tests:*>**>

Re: [R] Anova for stratified Cox regression

2008-01-15 Thread Peter Dalgaard
Peter Dalgaard wrote: > (Did you check the latest version? Mine is what came with 2.6.1.) D'oh. I could just have checked R-devel myself. It is doing the same thing. Also, > m2 = coxph(Surv(time, status) ~ strata(sex), data=d) > summary(m2) Error in summary.coxph(m2) : Input is not valid In additi

Re: [R] Anova for stratified Cox regression

2008-01-15 Thread Peter Dalgaard
Matthias Gondan wrote: > Dear List, > > I have tried a stratified Cox Regression, it is working fine, except for > the "Anova"-Tests: > > Here the commands (should work out of the box): > > library(survival) > d = colon[colon$etype==2, ] > m = coxph(Surv(time, status) ~ strata(sex) + rx, data=d) >

[R] Anova for stratified Cox regression

2008-01-15 Thread Matthias Gondan
Dear List, I have tried a stratified Cox Regression, it is working fine, except for the "Anova"-Tests: Here the commands (should work out of the box): library(survival) d = colon[colon$etype==2, ] m = coxph(Surv(time, status) ~ strata(sex) + rx, data=d) summary(m) # Printout ok anova(m, test='Ch