search for: age_at_death

Displaying 2 results from an estimated 2 matches for "age_at_death".

2004 Sep 03
1
Printing output on Plot
...es from the CPH test to appear but if this can't be done I am willing to have the entire CPH output. This is what I am currently trying: (it doesn't print the CPH output) plot_KM <- function(field) { library(survival) y = length(levels(factor(field))) field.KM <- survfit(Surv(age_at_death,death)~field) field.CPH <- coxph(Surv(age_at_death,death)~factor(field)) plot(field.KM,mark.time=FALSE,col=2: (y+1),lty=1,main=paste(as.character(substitute(field))," Kaplan-Meier Plot")) text(1000, .3, paste(as.character(field.CPH)), col="red") legend(1000, .5, levels...
2004 Oct 16
3
Cox PH Warning Message
Hi, Can anybody tell me what the message below means and how to overcome it. Thanks, Neil Warning message: X matrix deemed to be singular; variable 2 in: coxph(Surv(age_at_death, death) ~ project$pluralgp + project$yrborn + ......... >