Skip to content

Commit 3d3b610

Browse files
edelaruashajoezhu
andauthored
Update EG templates (#169)
Closes #167 --------- Signed-off-by: Joe Zhu <[email protected]> Co-authored-by: Joe Zhu <[email protected]>
1 parent 301421d commit 3d3b610

File tree

10 files changed

+355
-336
lines changed

10 files changed

+355
-336
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Depends:
2828
tern (>= 0.9.6.9015)
2929
Imports:
3030
pharmaverseadam (>= 1.1.0),
31-
random.cdisc.data (>= 0.3.15.9001)
31+
random.cdisc.data (>= 0.3.16)
3232
Suggests:
3333
broom,
3434
checkmate,
@@ -45,6 +45,7 @@ Suggests:
4545
VignetteBuilder:
4646
knitr
4747
Remotes:
48+
pharmaverse/pharmaverseadam@main,
4849
insightsengineering/tern@main
4950
biocViews:
5051
Config/Needs/website: insightsengineering/nesttemplate

tests/testthat/_snaps/listing_egl01.md

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

tests/testthat/_snaps/table_egt01.md

Lines changed: 125 additions & 110 deletions
Large diffs are not rendered by default.

tests/testthat/_snaps/table_egt02.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
Heart Rate (beats/min)
1010
Low 0/84 0/72 0/94
1111
High 4/84 (4.8%) 0/72 0/94
12-
QT Duration (msec)
12+
QT Duration (ms)
1313
Low 55/84 (65.5%) 44/72 (61.1%) 52/94 (55.3%)
1414
High 84/84 (100%) 72/72 (100%) 93/94 (98.9%)
15-
RR Duration (msec)
15+
RR Duration (ms)
1616
Low 84/84 (100%) 72/72 (100%) 94/94 (100%)
1717
High 0/84 0/72 0/94
1818

@@ -27,10 +27,10 @@
2727
Heart Rate (beats/min)
2828
Low 0/84 0/72 0/94
2929
High 4/84 (4.8%) 0/72 0/94
30-
QT Duration (msec)
31-
Low 52/84 (61.9%) 44/72 (61.1%) 51/94 (54.3%)
32-
High 83/84 (98.8%) 72/72 (100%) 90/94 (95.7%)
33-
RR Duration (msec)
34-
Low 84/84 (100%) 72/72 (100%) 94/94 (100%)
30+
QT Duration (ms)
31+
Low 55/84 (65.5%) 44/72 (61.1%) 52/94 (55.3%)
32+
High 37/37 (100%) 35/35 (100%) 44/44 (100%)
33+
RR Duration (ms)
34+
Low 12/12 (100%) 6/6 (100%) 10/10 (100%)
3535
High 0/84 0/72 0/94
3636

tests/testthat/_snaps/table_egt03.md

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -3,102 +3,102 @@
33
Code
44
res
55
Output
6-
LOW NORMAL HIGH Missing
7-
—————————————————————————————————————————————————————————————————
8-
Placebo (N=86)
9-
n 0 333 0 3
10-
LOW 0 84 (25%) 0 0
11-
NORMAL 0 249 (74.1%) 0 0
12-
HIGH 0 0 0 0
13-
Missing 0 0 0 3 (0.9%)
14-
Xanomeline High Dose (N=84)
15-
n 0 327 0 1
16-
LOW 0 82 (25%) 0 0
17-
NORMAL 0 245 (74.7%) 0 0
18-
HIGH 0 0 0 0
19-
Missing 0 0 0 1 (0.3%)
20-
Xanomeline Low Dose (N=84)
21-
n 0 335 0 1
22-
LOW 0 84 (25%) 0 0
23-
NORMAL 0 251 (74.7%) 0 0
24-
HIGH 0 0 0 0
25-
Missing 0 0 0 1 (0.3%)
6+
LOW NORMAL HIGH Missing
7+
———————————————————————————————————————————————————————————————————————
8+
Placebo (N=84)
9+
n 37 45 0 2
10+
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
11+
NORMAL 20 (23.8%) 31 (36.9%) 0 0
12+
HIGH 0 0 0 0
13+
Missing 2 (2.4%) 0 0 0
14+
Xanomeline High Dose (N=82)
15+
n 30 50 0 2
16+
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
17+
NORMAL 17 (20.7%) 29 (35.4%) 0 0
18+
HIGH 0 0 0 0
19+
Missing 0 1 (1.2%) 0 0
20+
Xanomeline Low Dose (N=84)
21+
n 32 51 0 1
22+
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
23+
NORMAL 22 (26.2%) 28 (33.3%) 0 0
24+
HIGH 0 0 0 0
25+
Missing 0 2 (2.4%) 0 0
2626

2727
# EGT03 variant 2 is produced correctly
2828

2929
Code
3030
res
3131
Output
32-
NORMAL
33-
—————————————————————————————————————————
34-
Placebo (N=86)
35-
n 336
36-
LOW 84 (25%)
37-
NORMAL 249 (74.1%)
38-
HIGH 0
39-
Missing 3 (0.9%)
40-
Xanomeline High Dose (N=84)
41-
n 328
42-
LOW 82 (25%)
43-
NORMAL 245 (74.7%)
44-
HIGH 0
45-
Missing 1 (0.3%)
46-
Xanomeline Low Dose (N=84)
47-
n 336
48-
LOW 84 (25%)
49-
NORMAL 251 (74.7%)
50-
HIGH 0
51-
Missing 1 (0.3%)
32+
LOW NORMAL
33+
—————————————————————————————————————————————————————
34+
Placebo (N=84)
35+
n 38 46
36+
LOW 16 (19%) 15 (17.9%)
37+
NORMAL 20 (23.8%) 31 (36.9%)
38+
HIGH 0 0
39+
Missing 2 (2.4%) 0
40+
Xanomeline High Dose (N=82)
41+
n 30 52
42+
LOW 13 (15.9%) 22 (26.8%)
43+
NORMAL 17 (20.7%) 29 (35.4%)
44+
HIGH 0 0
45+
Missing 0 1 (1.2%)
46+
Xanomeline Low Dose (N=84)
47+
n 32 52
48+
LOW 10 (11.9%) 22 (26.2%)
49+
NORMAL 22 (26.2%) 28 (33.3%)
50+
HIGH 0 0
51+
Missing 0 2 (2.4%)
5252

5353
# EGT03 variant 3 is produced correctly
5454

5555
Code
5656
res
5757
Output
58-
LOW NORMAL HIGH Missing
59-
—————————————————————————————————————————————————————————————————
60-
Placebo (N=86)
61-
n 0 333 0 3
62-
LOW 0 84 (25%) 0 0
63-
NORMAL 0 249 (74.1%) 0 0
64-
HIGH 0 0 0 0
65-
Missing 0 0 0 3 (0.9%)
66-
Xanomeline High Dose (N=84)
67-
n 0 327 0 1
68-
LOW 0 82 (25%) 0 0
69-
NORMAL 0 245 (74.7%) 0 0
70-
HIGH 0 0 0 0
71-
Missing 0 0 0 1 (0.3%)
72-
Xanomeline Low Dose (N=84)
73-
n 0 335 0 1
74-
LOW 0 84 (25%) 0 0
75-
NORMAL 0 251 (74.7%) 0 0
76-
HIGH 0 0 0 0
77-
Missing 0 0 0 1 (0.3%)
58+
LOW NORMAL HIGH Missing
59+
———————————————————————————————————————————————————————————————————————
60+
Placebo (N=84)
61+
n 37 45 0 2
62+
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
63+
NORMAL 20 (23.8%) 31 (36.9%) 0 0
64+
HIGH 0 0 0 0
65+
Missing 2 (2.4%) 0 0 0
66+
Xanomeline High Dose (N=82)
67+
n 30 50 0 2
68+
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
69+
NORMAL 17 (20.7%) 29 (35.4%) 0 0
70+
HIGH 0 0 0 0
71+
Missing 0 1 (1.2%) 0 0
72+
Xanomeline Low Dose (N=84)
73+
n 32 51 0 1
74+
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
75+
NORMAL 22 (26.2%) 28 (33.3%) 0 0
76+
HIGH 0 0 0 0
77+
Missing 0 2 (2.4%) 0 0
7878

7979
# EGT03 variant 4 is produced correctly
8080

8181
Code
8282
res
8383
Output
84-
LOW NORMAL HIGH Missing
85-
—————————————————————————————————————————————————————————————————
86-
Placebo (N=86)
87-
n 0 333 0 3
88-
LOW 0 84 (25%) 0 0
89-
NORMAL 0 249 (74.1%) 0 0
90-
HIGH 0 0 0 0
91-
Missing 0 0 0 3 (0.9%)
92-
Xanomeline High Dose (N=84)
93-
n 0 327 0 1
94-
LOW 0 82 (25%) 0 0
95-
NORMAL 0 245 (74.7%) 0 0
96-
HIGH 0 0 0 0
97-
Missing 0 0 0 1 (0.3%)
98-
Xanomeline Low Dose (N=84)
99-
n 0 335 0 1
100-
LOW 0 84 (25%) 0 0
101-
NORMAL 0 251 (74.7%) 0 0
102-
HIGH 0 0 0 0
103-
Missing 0 0 0 1 (0.3%)
84+
LOW NORMAL HIGH Missing
85+
———————————————————————————————————————————————————————————————————————
86+
Placebo (N=84)
87+
n 37 45 0 2
88+
LOW 15 (17.9%) 14 (16.7%) 0 2 (2.4%)
89+
NORMAL 20 (23.8%) 31 (36.9%) 0 0
90+
HIGH 0 0 0 0
91+
Missing 2 (2.4%) 0 0 0
92+
Xanomeline High Dose (N=82)
93+
n 30 50 0 2
94+
LOW 13 (15.9%) 20 (24.4%) 0 2 (2.4%)
95+
NORMAL 17 (20.7%) 29 (35.4%) 0 0
96+
HIGH 0 0 0 0
97+
Missing 0 1 (1.2%) 0 0
98+
Xanomeline Low Dose (N=84)
99+
n 32 51 0 1
100+
LOW 10 (11.9%) 21 (25%) 0 1 (1.2%)
101+
NORMAL 22 (26.2%) 28 (33.3%) 0 0
102+
HIGH 0 0 0 0
103+
Missing 0 2 (2.4%) 0 0
104104

0 commit comments

Comments
 (0)