79098176

Date: 2024-10-17 13:00:58
Score: 0.5
Natty:
Report link

does the style_fun parameter allow you to make the change you're looking for? thanks!

library(srvyr)
library(gtsummary)
data(api, package = "survey")
apistrat %>% 
    as_survey_design(strata = stype, weights = pw) %>%
    tbl_svysummary(digits = list(all_categorical() ~ c(0, 2)), by = awards, percent = "column", 
                 include = c(both,stype)) |>
    add_stat_label() |>
    add_ci(
        pattern = "{stat} (95% CI {ci})",
        style_fun = 
            list(
                all_continuous() ~ label_style_sigfig(), 
                all_categorical() ~ label_style_sigfig(scale = 100,digits=4)
            )
    ) |>
    add_p()
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Anthony Damico