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

79 add binary endpoints to wrapper anchored function #112

Merged
merged 42 commits into from
Jul 19, 2024

Conversation

hoppanda
Copy link
Member

No description provided.

hoppanda and others added 27 commits March 15, 2024 08:02
…table

67 add function to expand 2x2 table
@hoppanda hoppanda linked an issue Jun 28, 2024 that may be closed by this pull request
@gravesti gravesti self-assigned this Jun 28, 2024
R/maic_anchored.R Outdated Show resolved Hide resolved
tests/testthat.R Outdated Show resolved Hide resolved
@gravesti
Copy link
Contributor

gravesti commented Jul 2, 2024

@hoppanda Still need some tests for anchored binary

Copy link
Contributor

github-actions bot commented Jul 12, 2024

badge

Code Coverage Summary

Filename               Stmts    Miss  Cover    Missing
-------------------  -------  ------  -------  -------------------------------------------------------------------------------------------------------------------
R/binary-helper.R         59       7  88.14%   14, 18, 21, 24, 28, 31, 36
R/bootstrap.R             23      23  0.00%    54-88
R/bucher.R                62       5  91.94%   103, 107, 111, 186-187
R/data_generation.R       20      20  0.00%    36-73
R/maic_anchored.R        348      46  86.78%   89-96, 101-104, 108, 111, 115, 118-121, 124-127, 132, 137, 140, 158-163, 214, 275, 281, 426-435, 444, 450, 521, 538
R/maic_unanchored.R      253      33  86.96%   80-87, 90-91, 96, 99-102, 105-108, 113, 122, 125, 148-155, 184, 241, 248, 357, 364
R/matching.R             245     146  40.41%   65, 70-72, 77-80, 87-94, 139, 175, 214, 256-516
R/plot_km.R              449     373  16.93%   46-598
R/plot_km2.R             107      22  79.44%   50, 59, 62, 65, 87-93, 120-128, 131, 175
R/process_data.R         101      44  56.44%   49-51, 56, 71-74, 80, 92-93, 183, 216-280
R/reporting.R             59       0  100.00%
R/survival-helper.R       30       3  90.00%   63, 66-67
R/time-helper.R            9       4  55.56%   22, 37-38, 52
R/utils.R                 12      10  16.67%   4, 11-20
R/zzz.R                    1       1  0.00%    2
TOTAL                   1778     737  58.55%

Diff against main

Filename             Stmts    Miss  Cover
-----------------  -------  ------  -------
R/bucher.R              +7      +2  -2.61%
R/maic_anchored.R     +171     +12  +5.99%
R/reporting.R            0      -1  +1.69%
TOTAL                 +178     +13  +3.80%

Results for commit: d398b9b

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

tags <- paste0(c("IPD/", "weighted IPD/", "AgD/"), endpoint_name)
res$inferential[["report_overall_robustCI"]] <- rbind(
report_table_binary(binobj_ipd, tag = tags[1], eff_measure = eff_measure),
report_table_binary(binobj_ipd_adj, res_AB, tag = tags[2], eff_measure = eff_measure),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoppanda Trying to follow what's being reported here. I think res_AB should actually be the results for the weighted AC comparison, right? The A v B should only appear in the last line?
eg
A v C
A v C weighted
B v C
A v B

Suggested change
report_table_binary(binobj_ipd_adj, res_AB, tag = tags[2], eff_measure = eff_measure),
report_table_binary(binobj_ipd_adj, res_AB, tag = tags[2], eff_measure = eff_measure),

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated this. Can you check @hoppanda ?

Copy link
Contributor

github-actions bot commented Jul 18, 2024

Unit Tests Summary

 1 files   7 suites   6s ⏱️
23 tests 22 ✅ 1 💤 0 ❌
76 runs  73 ✅ 3 💤 0 ❌

Results for commit d398b9b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jul 18, 2024

Unit Test Performance Difference

Additional test case details
Test Suite $Status$ Time on main $±Time$ Test Case
maic_anchored 👶 $+0.41$ maic_anchored_for_binary_case_gives_the_expected_result

Results for commit 1765402

♻️ This comment has been updated with latest results.

Copy link
Contributor

@gravesti gravesti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hoppanda @MikeJSeo Let's quickly discuss this tomorrow then merge if possible

@gravesti gravesti merged commit 084a0cb into main Jul 19, 2024
25 checks passed
@gravesti gravesti deleted the 79-add-binary-endpoints-to-wrapper-anchored-function branch July 19, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

add binary endpoints to wrapper anchored function
2 participants