Re: [R] Plotting Cumulative Hazard Functions with Strata

2009-06-20 Thread David Winsemius
On Jun 20, 2009, at 12:23 AM, j0645073 wrote: Hello: So i've fit a hazard function to a set of data using kmfit<-survfit(Surv(int, event)~factor(cohort)) this factor variable, "cohort" has four levels so naturally the strata variable has 4 values. I can use this data to estimate the hazard

[R] Plotting Cumulative Hazard Functions with Strata

2009-06-20 Thread j0645073
Hello: So i've fit a hazard function to a set of data using kmfit<-survfit(Surv(int, event)~factor(cohort)) this factor variable, "cohort" has four levels so naturally the strata variable has 4 values. I can use this data to estimate the hazard rate haz<-n.event/n.risk and calculate the cumul