View source: R/print_cox_outputs.R
| print_cox_outputs | R Documentation |
Just a wrapper to get quantities out of a call to coxph()
print_cox_outputs(cox_fit, print_output = TRUE)
cox_fit |
A model fitted with coxph() |
print_output |
Print summary to screen if TRUE |
A list including beta, HR, SE, and CI
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.