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_p() - add test names to add_p_test.<method> #213

Closed
ddsjoberg opened this issue Aug 18, 2019 · 0 comments
Closed

add_p() - add test names to add_p_test.<method> #213

ddsjoberg opened this issue Aug 18, 2019 · 0 comments
Assignees

Comments

@ddsjoberg
Copy link
Owner

ddsjoberg commented Aug 18, 2019

The add_p() function adds a footnote indicating the tests performed.

When custom tests are added to the add_p() suite of tests via add_p_test.<method>(), the footnote associated with the test is listed as NA in the footnote. Update the add_p_test() functions to return not only the p-value but an attribute with the test name. The name will then be taken from the attribute.

add_p_ex2 <-
  trial %>%
  dplyr::select(response, trt) %>%
  tbl_summary(by = trt) %>%
  add_p(test = vars(response) ~ "mcnemar")

image

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

No branches or pull requests

1 participant