Learn R Programming

reconstructKM (version 0.4.0)

print_cox_outputs: Print outputs from Cox regression

Description

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

Usage

print_cox_outputs(cox_fit, print_output = TRUE)

Value

A list including beta, HR, SE, and CI

Arguments

cox_fit

A model fitted with coxph()

print_output

Print summary to screen if TRUE

Examples

Run this code
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)

Run the code above in your browser using DataLab