【发布时间】:2021-03-03 20:36:01
【问题描述】:
在下面的例子中,
# keep the continuous var and the two categorical variables
select(trt, age, grade) %>%
group_nest(grade) %>%
mutate(
tbl = map2(
grade, data,
~tbl_summary(.y, by = trt,
label = list(age = paste("Age: Grade", .x)), missing = "no")
)
) %>%
pull(tbl) %>%
tbl_stack() %>%
as_tibble()
每个年龄的观察次数:年级应该加在哪里?
【问题讨论】:
标签: nested categories summarize continuous gtsummary