summarize_coxreg_multivar {junco} | R Documentation |
Layout Generating Function for TEFOS03 and Related Cox Regression Layouts
Description
Layout Generating Function for TEFOS03 and Related Cox Regression Layouts
Usage
summarize_coxreg_multivar(
lyt,
var,
variables,
control = control_coxreg(),
formats = list(coef_se = jjcsformat_xx("xx.xx (xx.xx)"), hr_est =
jjcsformat_xx("xx.xx"), hr_ci = jjcsformat_xx("(xx.xx, xx.xx)"), pval =
jjcsformat_pval_fct(0))
)
Arguments
lyt |
( |
var |
( |
variables |
(named |
control |
( |
formats |
(named |
Value
lyt
modified to add the desired cox regression table section.
Examples
anl <- tern::tern_ex_adtte |>
dplyr::mutate(EVENT = 1 - CNSR)
variables <- list(
time = "AVAL",
event = "EVENT",
arm = "ARM",
covariates = c("SEX", "AGE")
)
basic_table() |>
summarize_coxreg_multivar(
var = "STUDYID",
variables = variables
) |>
build_table(df = anl)
[Package junco version 0.1.1 Index]