print_cox_outputs {reconstructKM} | R Documentation |
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)
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
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)
[Package reconstructKM version 0.3.0 Index]