[R] p-value for hazard ratio in Cox proportional hazards regression?

Joshua Wiley jwiley.psych at gmail.com
Sat Dec 10 22:53:00 CET 2011

Hi Thierry,

Could you give us an example of what exactly you are doing
(preferablly reproducible R code)?  I may be misunderstanding you, but
if you are fitting cox proportional hazard models using the coxph()
function from the surival package, summary(yourmodel) should give the
SE, p-value based on the wald statistic, and 95% CI.



On Sat, Dec 10, 2011 at 1:13 PM, Thierry Julian Panje
<tpanje at stanford.edu> wrote:
> Hi,
> I'm new to R and using it for Cox survival analysis. Thanks to this great forum I learned how to compute the HR with its confidence interval.
> My question would be: Is there any way to get the p-value for a hazard ratio in addition to the confidence interval?
> Thanks,
> Thierry
> --
> Thierry Panje                  Visiting Student Researcher
> Department of Psychology       Stanford Psychophysiology Lab
> 450 Serra Mall, Bldg 420       Stanford University
> ______________________________________________
> 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.

Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles

More information about the R-help mailing list