get_cox_summary: Summarizes the Cox Regression Analysis

Description Usage Arguments Value Examples

View source: R/get_cox_summary.R

Description

This function summarizes the results of a cox regression returning the results in a data.frame. It will calculate the confidence interval.

Usage

1
get_cox_summary(cox.res, ci = 95)

Arguments

cox.res

The result of a coxph fit.

ci

The confidence interval to calculate.

Value

A data.frame that summarizes the results.

Examples

1
2
cox.res <- survival::coxph(survival::Surv(time,status) ~ rx, survival::colon)
get_cox_summary(cox.res)

Example output

            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

survutils documentation built on July 23, 2018, 1:02 a.m.