Skip to content

Commit

Permalink
add example with n_unweighted
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmbarrett committed Feb 3, 2025
1 parent 2b69253 commit 86a680b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/add_ess_header.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' add_ess_header()
#'
#' gtsummary::tbl_svysummary(svy, by = qsmk, include = c(age, sex, smokeyrs)) |>
#' add_ess_header(header = "**{level}** \nN = {round(n, 1)} / {round(N, 1)}")
#' add_ess_header(header = "**{level}** \nN = {n_unweighted}; \nESS = {round(n, 1)}")
add_ess_header <- function(x, header = "**{level}** \nESS = {round(n, 1)}") {
# check inputs ---------------------------------------------------------------
rlang::check_installed(c("cards", "dplyr"))
Expand Down

0 comments on commit 86a680b

Please sign in to comment.