-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updating ard_proportion_ci()
to accept categorical variables
#158
Conversation
Code Coverage Summary
Diff against main
Results for commit: b38dc27 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 71 suites 10s ⏱️ Results for commit b38dc27. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit c521ec6 ♻️ This comment has been updated with latest results. |
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.
I think thats all I caught, looks great otherwise!
Co-authored-by: Zelos Zhu <[email protected]> Signed-off-by: Daniel Sjoberg <[email protected]>
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.
one more spot
Co-authored-by: Zelos Zhu <[email protected]> Signed-off-by: Daniel Sjoberg <[email protected]>
Ahh, thank you @zdz2101 !! Would you mind adding a unit test using these args so I don't accidentally break it in the future? |
What changes are proposed in this pull request?
ard_proportion_ci(value)
argument has been added. Previously, only binary variables (0/1 or TRUE/FALSE) could be summarized. Now, binary variables will have the value specified invalue
summarized. For non-binary, categorical variables, each level is summarized.Created on 2024-05-25 with reprex v2.1.0
closes #154
Pre-review Checklist (if item does not apply, mark is as complete)
usethis::pr_merge_main()
ard_*()
function was added, it passes the ARD structural checks fromcards::check_ard_structure()
.ard_*()
function was added,set_cli_abort_call()
has been set.ard_*()
function was added and it depends on another package (such as,broom
),is_pkg_installed("broom", reference_pkg = "cardx")
has been set in the function call and the following added to the roxygen comments:@examplesIf do.call(asNamespace("cardx")$is_pkg_installed, list(pkg = "broom"", reference_pkg = "cardx"))
devtools::test_coverage()
Reviewer Checklist (if item does not apply, mark is as complete)
devtools::test_coverage()
When the branch is ready to be merged:
NEWS.md
with the changes from this pull request under the heading "# cardx (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).