h_extract_coxreg_multivar {junco} | R Documentation |
Extract Estimates from Multivariate Cox Regression Model Fit Object
Description
Extract Estimates from Multivariate Cox Regression Model Fit Object
Usage
h_extract_coxreg_multivar(x)
Arguments
x |
( |
Value
A data frame containing Cox regression results with columns for term, coef_se (coefficient and standard error), p.value, hr (hazard ratio), hr_ci (confidence interval for hazard ratio), and labels (formatted term labels).
Examples
anl <- tern::tern_ex_adtte |>
dplyr::mutate(EVENT = 1 - CNSR)
variables <- list(
time = "AVAL",
event = "EVENT",
arm = "ARM",
covariates = c("SEX", "AGE")
)
control <- tern::control_coxreg(
conf_level = 0.9,
ties = "efron"
)
fit <- tern::fit_coxreg_multivar(
data = anl,
variables = variables,
control = control
)
h_extract_coxreg_multivar(fit)
[Package junco version 0.1.1 Index]