Description Usage Arguments Value Examples
This function summarizes the results of a cox regression returning the results in a data.frame. It will calculate the confidence interval.
1 | get_cox_summary(cox.res, ci = 95)
|
cox.res |
The result of a coxph fit. |
ci |
The confidence interval to calculate. |
A data.frame that summarizes the results.
1 2 | cox.res <- survival::coxph(survival::Surv(time,status) ~ rx, survival::colon)
get_cox_summary(cox.res)
|
coef se z p HR HRse HRz HRp HRCILL HRCIUL
rxLev -0.021 0.077 -0.272 0.786 0.979 0.075 -0.275 0.783 0.842 1.138
rxLev+5FU -0.441 0.084 -5.256 0.000 0.643 0.054 -6.606 0.000 0.546 0.758
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.