Skip to content

Commit

Permalink
closes #2102
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Dec 17, 2024
1 parent 2f29b79 commit 1bb7647
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vignettes/articles/gallery.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,11 @@ my_tidy <- function(x, exponentiate = FALSE, conf.level = 0.95, ...) {
dplyr::bind_cols(
broom::tidy(x, exponentiate = exponentiate, conf.int = FALSE),
# calculate the confidence intervals, and save them in a tibble
confint.default(x) |>
dplyr::as_tibble() |>
dplyr::case_when(
exponentiate ~ exp(confint.default(x)),
.default = confint.default(x)
) |>
dplyr::as_tibble(.name_repair = "minimal") |>
rlang::set_names(c("conf.low", "conf.high"))
)
}
Expand Down

0 comments on commit 1bb7647

Please sign in to comment.