I am trying to create stratified summary table with 93 levels of strtaification.
I used the below code
table0 <- data1 %>% select(A6_ULB_NAME, D6, D7, A8_TYPE_OF_HOUSE) %>% tbl_strata(strata = A6_ULB_NAME,.tbl_fun = ~ .x |> tbl_summary(by = A8_TYPE_OF_HOUSE, missing = "no") ) %>% add_overall()
But unfortunately, getting the below error
Error in UseMethod("add_overall") : no applicable method for 'add_overall' applied to an object of class "c('tbl_strata', 'tbl_merge', 'gtsummary')"
How to generate the stratified table with an overall column?
Thanks in advance!
M