[R] smooth non cumulative baseline hazard in Cox model

2004-07-04 Thread Mayeul KAUFFMANN
Hi everyone. There's been several threads on baseline hazard in Cox model but I think they were all on cumulative baseline hazard, for instance http://tolstoy.newcastle.edu.au/R/help/01a/0464.html http://tolstoy.newcastle.edu.au/R/help/01a/0436.html basehaz in package survival seems to do a

Re: [R] smooth non cumulative baseline hazard in Cox model

2004-07-04 Thread Prof Brian Ripley
If you have a smooth cumulative hazard you can differentiate it to get a differentiable hazard (using smooth in its technical sense). Try http://www.stats.ox.ac.uk/pub/MASS4/VR4stat.pdf for possible approaches in S/R. There are several, e.g. in packages muhaz, polspline, sm, locfit,

Re: [R] smooth non cumulative baseline hazard in Cox model

2004-07-04 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: I'm doing the same job as Hegre et al. (studying civil wars) but with the counting process formulation of the Cox model. (I use intervals, my formula looks like Surv(start,stop,status)~ etc.). Careful, that is left- and right- censored, not

Re: [R] smooth non cumulative baseline hazard in Cox model

2004-07-04 Thread Mayeul KAUFFMANN
Thank you all for your quick answers. With respect to my question on smooth noncumulative baseline cox hazard, I followed Prof Brian Ripley and I used the following: library(survival) plot(basehaz(coxfinal2)[,2]/365.25+1945,basehaz(coxfinal2)[,1],t=l) xx -