Description Usage Arguments Details Value
Builds a function to fit a Cox model to the outcome survival object and returns the hazard ratios for each covariate level.
1 2 | hazard_ratio(outcome, adjusted = FALSE, relevel_baseline = FALSE,
digits = 2, ci = TRUE)
|
outcome |
The dependent variable, specifies a |
adjusted |
Whether to adjust for the other covariates, specified by
|
relevel_baseline |
Whether to use the largest level as the baseline. |
digits |
The number of digits to display. |
ci |
Whether to include a confidence interval in parentheses after the estimate. |
See documentation for contingency_table
and vignette
for usage.
A function that is used to calculate hazard ratios.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.