[R] Anova for stratified Cox regression

From: Matthias Gondan <matthias-gondan_at_gmx.de>
Date: Tue, 15 Jan 2008 17:08:57 +0100

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

d = colon[colon$etype==2, ]
m = coxph(Surv(time, status) ~ strata(sex) + rx, data=d) summary(m)
# Printout ok
anova(m, test='Chisq')

This is the output of the anova command:

> Analysis of Deviance Table
> Cox model: response is Surv(time, status)
> Terms added sequentially (first to last)
> Df Deviance Resid. Df Resid. Dev P(>|Chi|)
> NULL 929 5233.5
> strata(sex) 0 929
> rx 2 927 5221.2
> Warning message:
> In is.na(coef(fit)) :
> is.na() auf nicht-(Liste oder Vektor) des Typs 'NULL' angewendet

It should be possible to do Chi-Square-Tests in a stratified analysis, right?

Best wishes,


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 15 Jan 2008 - 16:14:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jan 2008 - 17:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive