Re: [R] How to estimate a hazard ratio using an external hazard function

2008-04-11 Thread Montserrat Rue
Dear Professor Therneau, We have followed your advice and the results that we have obtained make a lot of sense. Thanks a lot! I would like to check if we took a correct approach to obtain the expected number of events. Since we had the hazard function as continuous (we used splines) we have

[R] How to estimate a hazard ratio using an external hazard function

2008-04-10 Thread Montserrat Rue
Hi, I would like to compare the hazard functions of two samples using the Cox proportional hazards model. For sample 1 I have individual time-to-event data. For sample 2 I don't have individual data, but grouped data that allows to obtain a hazard function. I am wondering if there is an R

[R] How to estimate a hazard ratio using an external hazard function

2008-04-09 Thread Montse Rué
Hi, I would like to compare the hazard functions of two samples using the Cox proportional hazards model. For sample 1 I have individual time-to- event data. For sample 2 I don't have individual data, but grouped data that allows to obtain a hazard function. I am wondering if there is an R