Skip to content

Commit

Permalink
Add filter to egt03
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Nov 25, 2024
1 parent f445c98 commit 43aa7b1
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 81 deletions.
160 changes: 80 additions & 80 deletions tests/testthat/_snaps/table_egt03.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,102 +3,102 @@
Code
res
Output
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 30 303 0 3
LOW 1 (0.3%) 27 (8%) 0 3 (0.9%)
NORMAL 29 (8.6%) 275 (81.8%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline High Dose (N=84)
n 34 293 0 1
LOW 2 (0.6%) 26 (7.9%) 0 1 (0.3%)
NORMAL 32 (9.8%) 266 (81.1%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline Low Dose (N=84)
n 35 300 0 1
LOW 1 (0.3%) 38 (11.3%) 0 1 (0.3%)
NORMAL 34 (10.1%) 259 (77.1%) 0 0
HIGH 0 0 0 0
Missing 0 3 (0.9%) 0 0
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 37 45 0 2
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
NORMAL 20 (23.8%) 31 (36.9%) 0 0
HIGH 0 0 0 0
Missing 2 (2.4%) 0 0 0
Xanomeline High Dose (N=84)
n 30 50 0 2
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
NORMAL 17 (20.7%) 29 (35.4%) 0 0
HIGH 0 0 0 0
Missing 0 1 (1.2%) 0 0
Xanomeline Low Dose (N=84)
n 32 51 0 1
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
NORMAL 22 (26.2%) 28 (33.3%) 0 0
HIGH 0 0 0 0
Missing 0 2 (2.4%) 0 0

# EGT03 variant 2 is produced correctly

Code
res
Output
NORMAL LOW
—————————————————————————————————————————————————————
Placebo (N=86)
n 305 31
LOW 29 (8.6%) 2 (0.6%)
NORMAL 275 (81.8%) 29 (8.6%)
HIGH 0 0
Missing 1 (0.3%) 0
Xanomeline High Dose (N=84)
n 294 34
LOW 27 (8.2%) 2 (0.6%)
NORMAL 266 (81.1%) 32 (9.8%)
HIGH 0 0
Missing 1 (0.3%) 0
Xanomeline Low Dose (N=84)
n 301 35
LOW 39 (11.6%) 1 (0.3%)
NORMAL 259 (77.1%) 34 (10.1%)
HIGH 0 0
Missing 3 (0.9%) 0
LOW NORMAL
—————————————————————————————————————————————————————
Placebo (N=86)
n 38 46
LOW 16 (19%) 15 (17.9%)
NORMAL 20 (23.8%) 31 (36.9%)
HIGH 0 0
Missing 2 (2.4%) 0
Xanomeline High Dose (N=84)
n 30 52
LOW 13 (15.9%) 22 (26.8%)
NORMAL 17 (20.7%) 29 (35.4%)
HIGH 0 0
Missing 0 1 (1.2%)
Xanomeline Low Dose (N=84)
n 32 52
LOW 10 (11.9%) 22 (26.2%)
NORMAL 22 (26.2%) 28 (33.3%)
HIGH 0 0
Missing 0 2 (2.4%)

# EGT03 variant 3 is produced correctly

Code
res
Output
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 30 303 0 3
LOW 1 (0.3%) 27 (8%) 0 3 (0.9%)
NORMAL 29 (8.6%) 275 (81.8%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline High Dose (N=84)
n 34 293 0 1
LOW 2 (0.6%) 26 (7.9%) 0 1 (0.3%)
NORMAL 32 (9.8%) 266 (81.1%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline Low Dose (N=84)
n 35 300 0 1
LOW 1 (0.3%) 38 (11.3%) 0 1 (0.3%)
NORMAL 34 (10.1%) 259 (77.1%) 0 0
HIGH 0 0 0 0
Missing 0 3 (0.9%) 0 0
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 37 45 0 2
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
NORMAL 20 (23.8%) 31 (36.9%) 0 0
HIGH 0 0 0 0
Missing 2 (2.4%) 0 0 0
Xanomeline High Dose (N=84)
n 30 50 0 2
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
NORMAL 17 (20.7%) 29 (35.4%) 0 0
HIGH 0 0 0 0
Missing 0 1 (1.2%) 0 0
Xanomeline Low Dose (N=84)
n 32 51 0 1
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
NORMAL 22 (26.2%) 28 (33.3%) 0 0
HIGH 0 0 0 0
Missing 0 2 (2.4%) 0 0

# EGT03 variant 4 is produced correctly

Code
res
Output
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 30 303 0 3
LOW 1 (0.3%) 27 (8%) 0 3 (0.9%)
NORMAL 29 (8.6%) 275 (81.8%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline High Dose (N=84)
n 34 293 0 1
LOW 2 (0.6%) 26 (7.9%) 0 1 (0.3%)
NORMAL 32 (9.8%) 266 (81.1%) 0 0
HIGH 0 0 0 0
Missing 0 1 (0.3%) 0 0
Xanomeline Low Dose (N=84)
n 35 300 0 1
LOW 1 (0.3%) 38 (11.3%) 0 1 (0.3%)
NORMAL 34 (10.1%) 259 (77.1%) 0 0
HIGH 0 0 0 0
Missing 0 3 (0.9%) 0 0
LOW NORMAL HIGH Missing
———————————————————————————————————————————————————————————————————————
Placebo (N=86)
n 37 45 0 2
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
NORMAL 20 (23.8%) 31 (36.9%) 0 0
HIGH 0 0 0 0
Missing 2 (2.4%) 0 0 0
Xanomeline High Dose (N=84)
n 30 50 0 2
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
NORMAL 17 (20.7%) 29 (35.4%) 0 0
HIGH 0 0 0 0
Missing 0 1 (1.2%) 0 0
Xanomeline Low Dose (N=84)
n 32 51 0 1
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
NORMAL 22 (26.2%) 28 (33.3%) 0 0
HIGH 0 0 0 0
Missing 0 2 (2.4%) 0 0

3 changes: 2 additions & 1 deletion tests/testthat/test-table_egt03.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ adeg_f <- subset(
PARAMCD == "HR" & # Heart Rate
SAFFL == "Y" & # "Safety Population Flag"
ONTRTFL == "Y" & # "On Treatment Record Flag"
AVISIT == "Week 2" # "Analysis Visit"
AVISIT == "Week 2" & # "Analysis Visit"
DTYPE == "AVERAGE"
)

# Preprocessing
Expand Down

0 comments on commit 43aa7b1

Please sign in to comment.