Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Aug 2, 2023
1 parent ef4ca2d commit 6ab0164
Show file tree
Hide file tree
Showing 14 changed files with 599 additions and 447 deletions.
8 changes: 4 additions & 4 deletions package/tests/testthat/_snaps/cmt01a/markdown-snaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
print(data_snap[[i]])
Output
ATC Level 2 Text A: Drug X B: Placebo C: Combination
Standardized Medication Name (N=134) (N=134) (N=132)
Other Treatment (N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————————————————
Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%)
Total number of treatments 415 414 460
Expand Down Expand Up @@ -51,7 +51,7 @@
print(data_snap[[i]])
Output
ATC Level 1 Text A: Drug X B: Placebo C: Combination
Standardized Medication Name (N=134) (N=134) (N=132)
Other Treatment (N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————————————————
Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%)
Total number of treatments 415 414 460
Expand Down Expand Up @@ -98,7 +98,7 @@
print(data_snap[[i]])
Output
ATC Level 2 Text A: Drug X B: Placebo C: Combination
Standardized Medication Name (N=134) (N=134) (N=132)
Other Treatment (N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————————————————
Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%)
Total number of treatments 415 414 460
Expand Down Expand Up @@ -145,7 +145,7 @@
print(data_snap[[i]])
Output
ATC Level 2 Text A: Drug X B: Placebo C: Combination
Standardized Medication Name (N=134) (N=134) (N=132)
Other Treatment (N=134) (N=134) (N=132)
———————————————————————————————————————————————————————————————————————————————————————————————————
Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%)
Total number of treatments 415 414 460
Expand Down
4 changes: 2 additions & 2 deletions package/tests/testthat/_snaps/cmt02_pt/markdown-snaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Code
print(data_snap[[i]])
Output
Standardized Medication Name A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
A: Drug X B: Placebo C: Combination All Patients
Other Treatment (N=134) (N=134) (N=132) (N=400)
————————————————————————————————————————————————————————————————————————————————————————————————————————————————
Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%) 349 (87.2%)
Total number of treatments 415 414 460 1289
Expand Down
22 changes: 22 additions & 0 deletions package/tests/testthat/_snaps/dmt01/markdown-snaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@
Mean (SD) 33.8 (6.6) 35.4 (7.9) 35.4 (7.7) 34.9 (7.4)
Median 33.0 35.0 35.0 34.0
Min - Max 21.0 - 50.0 21.0 - 62.0 20.0 - 69.0 20.0 - 69.0
Age Group
n 134 134 132 400
18-40 113 (84.3%) 103 (76.9%) 106 (80.3%) 322 (80.5%)
41-64 21 (15.7%) 31 (23.1%) 25 (18.9%) 77 (19.2%)
>=65 0 0 1 (0.8%) 1 (0.2%)
Sex
n 134 134 132 400
Female 79 (59%) 82 (61.2%) 70 (53%) 231 (57.8%)
Male 55 (41%) 52 (38.8%) 62 (47%) 169 (42.2%)
Ethnicity
n 134 134 132 400
NOT REPORTED 6 (4.5%) 10 (7.5%) 11 (8.3%) 27 (6.8%)
HISPANIC OR LATINO 15 (11.2%) 18 (13.4%) 15 (11.4%) 48 (12%)
NOT HISPANIC OR LATINO 104 (77.6%) 103 (76.9%) 101 (76.5%) 308 (77%)
UNKNOWN 9 (6.7%) 3 (2.2%) 5 (3.8%) 17 (4.2%)
Race
n 134 134 132 400
ASIAN 68 (50.7%) 67 (50%) 73 (55.3%) 208 (52%)
Expand Down Expand Up @@ -44,10 +55,21 @@
Mean (SD) 33.8 (6.6) 35.4 (7.9) 35.4 (7.7)
Median 33.0 35.0 35.0
Min - Max 21.0 - 50.0 21.0 - 62.0 20.0 - 69.0
Age Group
n 134 134 132
18-40 113 (84.3%) 103 (76.9%) 106 (80.3%)
41-64 21 (15.7%) 31 (23.1%) 25 (18.9%)
>=65 0 0 1 (0.8%)
Sex
n 134 134 132
Female 79 (59%) 82 (61.2%) 70 (53%)
Male 55 (41%) 52 (38.8%) 62 (47%)
Ethnicity
n 134 134 132
NOT REPORTED 6 (4.5%) 10 (7.5%) 11 (8.3%)
HISPANIC OR LATINO 15 (11.2%) 18 (13.4%) 15 (11.4%)
NOT HISPANIC OR LATINO 104 (77.6%) 103 (76.9%) 101 (76.5%)
UNKNOWN 9 (6.7%) 3 (2.2%) 5 (3.8%)
Race
n 134 134 132
ASIAN 68 (50.7%) 67 (50%) 73 (55.3%)
Expand Down
89 changes: 46 additions & 43 deletions package/tests/testthat/_snaps/dst01/markdown-snaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,62 @@
Code
print(data_snap[[i]])
Output
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
———————————————————————————————————————————————————————————————————————————————————————————
Completed Study 68 (50.75%) 66 (49.25%) 73 (55.30%) 207 (51.75%)
Discontinued Study 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
—————————————————————————————————————————————————————————————————————————————————————————
COMPLETED 68 (50.7%) 66 (49.3%) 73 (55.3%) 207 (51.7%)
ONGOING 24 (17.9%) 28 (20.9%) 21 (15.9%) 73 (18.2%)
DISCONTINUED 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)

# result_v2

Code
print(data_snap[[i]])
Output
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
—————————————————————————————————————————————————————————————————————————————————————————————
Completed Study 68 (50.75%) 66 (49.25%) 73 (55.30%) 207 (51.75%)
Discontinued Study 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
Safety 28 (20.9%) 29 (21.6%) 27 (20.5%) 84 (21.0%)
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
Non-Safety 14 (10.4%) 11 (8.2%) 11 (8.3%) 36 (9.0%)
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
———————————————————————————————————————————————————————————————————————————————————————————
COMPLETED 68 (50.7%) 66 (49.3%) 73 (55.3%) 207 (51.7%)
ONGOING 24 (17.9%) 28 (20.9%) 21 (15.9%) 73 (18.2%)
DISCONTINUED 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
Safety
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
Non-Safety
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)

# result_v3

Code
print(data_snap[[i]])
Output
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
—————————————————————————————————————————————————————————————————————————————————————————————
Completed Study 68 (50.75%) 66 (49.25%) 73 (55.30%) 207 (51.75%)
Discontinued Study 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
Safety 28 (20.9%) 29 (21.6%) 27 (20.5%) 84 (21.0%)
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
Non-Safety 14 (10.4%) 11 (8.2%) 11 (8.3%) 36 (9.0%)
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)
Completed Treatment 46 (34.33%) 38 (28.36%) 41 (31.06%) 125 (31.25%)
Ongoing Treatment 50 (37.31%) 51 (38.06%) 46 (34.85%) 147 (36.75%)
Discontinued Treatment 38 (28.36%) 45 (33.58%) 45 (34.09%) 128 (32.00%)
A: Drug X B: Placebo C: Combination All Patients
(N=134) (N=134) (N=132) (N=400)
———————————————————————————————————————————————————————————————————————————————————————————
COMPLETED 68 (50.7%) 66 (49.3%) 73 (55.3%) 207 (51.7%)
ONGOING 24 (17.9%) 28 (20.9%) 21 (15.9%) 73 (18.2%)
DISCONTINUED 42 (31.3%) 40 (29.9%) 38 (28.8%) 120 (30.0%)
Safety
ADVERSE EVENT 3 (2.2%) 6 (4.5%) 5 (3.8%) 14 (3.5%)
DEATH 25 (18.7%) 23 (17.2%) 22 (16.7%) 70 (17.5%)
Non-Safety
LACK OF EFFICACY 2 (1.5%) 2 (1.5%) 3 (2.3%) 7 (1.8%)
PHYSICIAN DECISION 2 (1.5%) 3 (2.2%) 2 (1.5%) 7 (1.8%)
PROTOCOL VIOLATION 5 (3.7%) 3 (2.2%) 4 (3%) 12 (3%)
WITHDRAWAL BY PARENT/GUARDIAN 4 (3%) 2 (1.5%) 1 (0.8%) 7 (1.8%)
WITHDRAWAL BY SUBJECT 1 (0.7%) 1 (0.7%) 1 (0.8%) 3 (0.8%)
COMPLETED 46 (34.3%) 38 (28.4%) 41 (31.1%) 125 (31.2%)
ONGOING 50 (37.3%) 51 (38.1%) 46 (34.8%) 147 (36.8%)
DISCONTINUED 38 (28.4%) 45 (33.6%) 45 (34.1%) 128 (32.0%)

Loading

0 comments on commit 6ab0164

Please sign in to comment.