powered by
Extract hazard ratio from a data.frame
extractHR(x, digits = 2)
an object of class coxph
An integer indicating the number of decimal places (round) or significant digits to be used. Default value is 2.
a data.frame consist of hazard ratio and 95 the p values.
# NOT RUN { require(survival) data(cancer) fit=coxph(Surv(time,status)~age+sex+obstruct+perfor,data=colon) extractHR(fit) # }
Run the code above in your browser using DataLab