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 cumulative hazard function by
H<--log(haz)

Now, I would like to plot this cumulative hazard function by time and
differentiate the curves by strata. For the life of me I cannot seem to do
it.

Any help would be greatly appreciated.

Regards,

j
-- 
View this message in context: 
http://www.nabble.com/Plotting-Cumulative-Hazard-Functions-with-Strata-tp24121979p24121979.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to