Skip to content

Commit

Permalink
Fix egt03/04
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Oct 16, 2024
1 parent 9d7e349 commit a277ed5
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 188 deletions.
146 changes: 86 additions & 60 deletions tests/testthat/_snaps/table_egt03.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,76 +3,102 @@
Code
res
Output
LOW NORMAL HIGH Missing
——————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 248 2 2
LOW 0 0 0 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 241 2 0
LOW 0 0 0 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 0 243 5 3
LOW 0 0 0 0
NORMAL 0 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 331 3 2
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 321 3 0
LOW 0 80 (24.7%) 1 (0.3%) 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 1 326 6 3
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 1 (0.3%) 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)

# EGT03 variant 2 is produced correctly

Code
res
Output
NORMAL LOW HIGH
————————————————————————————————————————————————————————————————
Placebo (N=336)
n 333 0 3
LOW 83 (24.7%) 0 1 (0.3%)
NORMAL 243 (72.3%) 0 2 (0.6%)
HIGH 5 (1.5%) 0 0
Missing 2 (0.6%) 0 0
Xanomeline High Dose (N=324)
n 321 0 3
LOW 80 (24.7%) 0 1 (0.3%)
NORMAL 241 (74.4%) 0 2 (0.6%)
HIGH 0 0 0
Missing 0 0 0
Xanomeline Low Dose (N=336)
n 329 1 6
LOW 83 (24.7%) 0 1 (0.3%)
NORMAL 242 (72%) 1 (0.3%) 5 (1.5%)
HIGH 1 (0.3%) 0 0
Missing 3 (0.9%) 0 0

# EGT03 variant 3 is produced correctly

Code
res
Output
LOW NORMAL HIGH Missing
——————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 248 2 2
LOW 0 0 0 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 241 2 0
LOW 0 0 0 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 0 243 5 3
LOW 0 0 0 0
NORMAL 0 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 331 3 2
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 321 3 0
LOW 0 80 (24.7%) 1 (0.3%) 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 1 326 6 3
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 1 (0.3%) 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)

# EGT03 variant 4 is produced correctly

Code
res
Output
LOW NORMAL HIGH Missing
——————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 248 2 2
LOW 0 0 0 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 241 2 0
LOW 0 0 0 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 0 243 5 3
LOW 0 0 0 0
NORMAL 0 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————————
Placebo (N=336)
n 0 331 3 2
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 0 243 (72.3%) 2 (0.6%) 0
HIGH 0 5 (1.5%) 0 0
Missing 0 0 0 2 (0.6%)
Xanomeline High Dose (N=324)
n 0 321 3 0
LOW 0 80 (24.7%) 1 (0.3%) 0
NORMAL 0 241 (74.4%) 2 (0.6%) 0
HIGH 0 0 0 0
Missing 0 0 0 0
Xanomeline Low Dose (N=336)
n 1 326 6 3
LOW 0 83 (24.7%) 1 (0.3%) 0
NORMAL 1 (0.3%) 242 (72%) 5 (1.5%) 0
HIGH 0 1 (0.3%) 0 0
Missing 0 0 0 3 (0.9%)

28 changes: 14 additions & 14 deletions tests/testthat/_snaps/table_egt04.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
Code
res
Output
Normal Abnormal Missing
—————————————————————————————————————————————————————————————————
Placebo (N=168)
Normal 78 (46.4%) 0 2 (1.2%)
Abnormal 46 (27.4%) 1 (0.6%) 0
Missing 39 (23.2%) 1 (0.6%) 1 (0.6%)
Xanomeline High Dose (N=106)
Normal 44 (41.5%) 11 (10.4%) 0
Abnormal 20 (18.9%) 6 (5.7%) 0
Missing 21 (19.8%) 3 (2.8%) 1 (0.9%)
Xanomeline Low Dose (N=108)
Normal 47 (43.5%) 3 (2.8%) 0
Abnormal 33 (30.6%) 0 1 (0.9%)
Missing 19 (17.6%) 5 (4.6%) 0
Normal Abnormal Missing
———————————————————————————————————————————————————————————————
Placebo (N=145)
Normal 73 (50.3%) 0 1 (0.7%)
Abnormal 38 (26.2%) 1 (0.7%) 2 (1.4%)
Missing 30 (20.7%) 0 0
Xanomeline High Dose (N=113)
Normal 45 (39.8%) 9 (8%) 1 (0.9%)
Abnormal 27 (23.9%) 7 (6.2%) 0
Missing 23 (20.4%) 1 (0.9%) 0
Xanomeline Low Dose (N=119)
Normal 52 (43.7%) 8 (6.7%) 0
Abnormal 30 (25.2%) 3 (2.5%) 0
Missing 25 (21%) 0 1 (0.8%)

Loading

0 comments on commit a277ed5

Please sign in to comment.