print_cox_outputs: Print outputs from Cox regression

Description Usage Arguments Value Examples

View source: R/print_cox_outputs.R

Description

Just a wrapper to get quantities out of a call to coxph()

Usage

1
print_cox_outputs(cox_fit, print_output = TRUE)

Arguments

cox_fit

A model fitted with coxph()

print_output

Print summary to screen if TRUE

Value

A list including beta, HR, SE, and CI

Examples

1
2
3
4
5
time <- rnorm(100)
status <- rbinom(n=100, prob=0.5, size=1)
arm <- c(rep(1,50), rep(0,50))
temp_cox <- survival::coxph(survival::Surv(time, status) ~ arm)
print_cox_outputs(temp_cox)

reconstructKM documentation built on Nov. 25, 2020, 5:08 p.m.