I have successfully got summary output from 'coxph'. However, now I am curious how to get the hazard ratio from these numbers? Is there a calculation I can do with what I have, or is there a certain code in R that will produce what I want?Output Image
The hazard ratio is represented by the exp(coef)
column of the coxph()
output.
For each treatment group, exp(coef)
gives the hazard against whatever you're using as the control or baseline group.