-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 functionality to sort & filter ard_stack_hierarchical()
results
#392
base: main
Are you sure you want to change the base?
Conversation
…chical' into 301_sort_filter_ard_stack_hierarchical
Unit Tests Summary 1 files 205 suites 58s ⏱️ Results for commit c387697. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 36571b8 ♻️ This comment has been updated with latest results. |
Code Coverage Summary
Diff against main
Results for commit: c387697 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Hi @edelarua , is this ready for review? Thanks! |
Hi @ddsjoberg, yes I think this should be ready now! I've also updated the corresponding PR in gtsummary (ddsjoberg/gtsummary#2097) to work with the updated version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edelarua this API for the filter function looks amazing!! 🤩
I haven't had a chance to review the sorting function, but have some initial comments on filtering. Thank you for this amazing work!
R/ard_filter.R
Outdated
#' @details | ||
#' The `filter` argument can be used to filter out rows of a hierarchical ARD which do not meet the requirements | ||
#' provided as an expression. Rows can be filtered on the values of any of the possible statistics (`n`, `p`, and `N`) | ||
#' provided they are included at least once in the ARD, as well as the values of any `by` variables. For each entry that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For each entry that does not meet the filtering requirement, all statistics corresponding to that entry will be removed from the ARD."
I think this would be more clear if it was something like, "if any of the AEs in the by
groups meet the criteria, all AEs within that group are retained" ? What do you think? Also, for this details section, maybe if we started with an example of AE+SOC, it would be clearer to talk about?
What changes are proposed in this pull request?
sort
andfilter
arguments toard_stack_hierarchical()
to support sorting & filtering of ARD results. (Do we need functions for working with our hierarchical results? #301)Closes #301
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main()
devtools::test_coverage()
Reviewer Checklist (if item does not apply, mark is as complete)
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.devtools::test_coverage()
When the branch is ready to be merged:
NEWS.md
with the changes from this pull request under the heading "# cards (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).Optional Reverse Dependency Checks:
Install
checked
withpak::pak("Genentech/checked")
orpak::pak("checked")