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

From: Montserrat Rue <montse.rue_at_cmb.udl.cat>
Date: Thu, 10 Apr 2008 12:52:23 +0200 (CEST)


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 function that allows to obtain a hazard ratio of the two hazard funtions (under the proportionality assumption) taking into account the censoring of the data?

I am aware of survexp and survdiff functions, but I am not sure if that is the best way to do what I need.

Any help will be highly appreciated.

Montse Rue
Department of Basic Medical Sciences
University of Lleida (Spain)

P.S. I sent this message yesterday, but I think I did something wrong and it did not arrive to the list. I apologize if I sent it twice.



R-help_at_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. Received on Thu 10 Apr 2008 - 10:56:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Apr 2008 - 11:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive