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
p-value for hazard ratio in Cox proportional hazards regression?
2 messages · Thierry Julian Panje, Joshua Wiley
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. Cheers, Josh 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 https://joshuawiley.com/