Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_ci() poor messaging and unexpected new column #1484

Closed
ddsjoberg opened this issue Apr 7, 2023 · 0 comments · Fixed by #1490
Closed

add_ci() poor messaging and unexpected new column #1484

ddsjoberg opened this issue Apr 7, 2023 · 0 comments · Fixed by #1490
Milestone

Comments

@ddsjoberg
Copy link
Owner

library(gtsummary)
packageVersion("gtsummary")
#> [1] '1.7.0'


trial |> 
  tbl_summary(
    include = c(response, age)
  ) |> 
  add_ci(include = age) |> 
  as_kable()
#> There was an error for variable 'response':
#> Error in summary_type[[variable]]: subscript out of bounds
#> ✖ `add_ci()` added mean CI for "age"; however, no mean is shown in the `tbl_summary()` table.
Characteristic N = 200 95% CI add_stat_1
Tumor Response 61 (32%)
Unknown 7
Age 47 (38, 57) 45, 49
Unknown 11

Created on 2023-04-07 with reprex v2.0.2

@ddsjoberg ddsjoberg added this to the v1.7.1 milestone Apr 11, 2023
@ddsjoberg ddsjoberg mentioned this issue Apr 12, 2023
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant