Table Summary- adding multiple footnotes

I'd like to add a footnote just to the 'suspected_malaria' variable- any tips?

table3_riskfactormanuscript_everhospitalized <-
tbl_summary(
table3_riskfactormanuscript,
by = ever_hospitalized, # split table by group
include = c(starts_with("symptoms"), fever, obs_appearance, low_oxygen, confirmed_malaria, suspected_malaria, history_tb, history_hiv, anyinfectious, history_diabetes, highbloodpressure, history_asthma, smoke, anychronic, bmi_cat, anemia, country.x),
digits = all_continuous()~1,
missing = "no" # don't list missing data separately
) %>%
#add_n() %>% # add column with total number of non-missing observations
add_p() %>% # test for a difference between groups
modify_header(label = "Variable") %>%
modify_footnote(
update = all_stat_cols() ~ "To update missing values/ collapse categories",
) %>%

update the column header

bold_labels()

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.