You can use the tbl_regression(label=)
argument to change the labels for the repeating variable to match the outcome for each model before you stack them.
There is, however, a shortcut using tbl_uvregerssion()
.
library(gtsummary)
packageVersion("gtsummary")
#> '1.3.6'
trial %>%
select(response, death, age) %>%
tbl_uvregression(
x = age,
method = glm,
method.args = list(family = binomial),
exponentiate = TRUE
) %>%
modify_header(label ~ "**Outcome**")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…