-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTA-SDTM.sas
More file actions
155 lines (127 loc) · 5.06 KB
/
TA-SDTM.sas
File metadata and controls
155 lines (127 loc) · 5.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/*Make all variables upper case. Set library name to nct0285.*/
options validvarname=upcase;
libname nct0285 "/home/u63567925/sasuser.v94/DimpleProj/nct0285";
*==============================================================================;
*Create SDTM program for Trial Arms (TA) Domain for Atezolizumb
Effect on Non-small Cell Lung Cancer Trial;
*==============================================================================;
data ta;
length studyid $10 domain $2 armcd $8 arm $40 taetord 8 etcd
$8 element $200 tabranch $200 tatrans $200 epoch $200;
/*Add Label Names to SDTM Variables.*/
label studyid="Study Identifier" domain="Domain Abbreviation"
armcd="Planned Arm Code" arm="Description of Planned Arm"
taetord="Sequence of Element within Arm" etcd="Element Code"
element="Description of Element" tabranch="Arm Branch Description"
tatrans="Transition Rule" epoch="Epoch Associated with Element";
*------------------------------------------------------------------------------;
*Set variables for trial arm "AZB0168 300 mg Q2W" to denote Atezolizumab with a
biweekly dosage of 300 mg for 2 weeks.;
*------------------------------------------------------------------------------;
studyid="NCT0285";
domain="TA";
armcd="AZB300";
arm="AZB0168 300 mg Q2W";
/*Create observation rows for element 1: Screening for 1st trial arm with armcd=AZB300.*/
taetord=1;
etcd="SCRN";
element="Screening";
tabranch="Randomized to AZB0285 300 mg Q2W";
tatrans="";
epoch="SCREENING";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 2: Treatment for 1st trial arm with armcd=AZB300.*/
taetord=2;
etcd="AZB300";
element="AZB0285 300 mg Q2W";
tabranch="";
tatrans="";
epoch="TREATMENT";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 3: Follow-up for 1st trial arm with armcd=AZB300.*/
taetord=3;
etcd="FU";
element="Follow-up";
tabranch="";
tatrans="";
epoch="FOLLOW-UP";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
*------------------------------------------------------------------------------;
*Set variables for 2nd trial arm "AZB0285 600 mg Q2W" to denote Cabozantinib;
* to denote biweekly dosage of 600 mg for 2 weeks.;
*------------------------------------------------------------------------------;
armcd="AZB600";
arm="AZB0285 600 mg Q2W";
/*Create observation rows for element 1: Screening for 2nd trial arm with armcd=AZB600.*/
taetord=1;
etcd="SCRN";
element="Screening";
tabranch="Randomized to AZB0285 600 mg Q2W";
tatrans="";
epoch="SCREENING";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 2: Treatment for 2nd trial arm with armcd=AZB600.*/
taetord=2;
etcd="AZB600";
element="AZB0285 600 mg Q2W";
tabranch="";
tatrans="";
epoch="TREATMENT";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 3: Follow-up for 2nd trial arm with armcd=AZB600.*/
taetord=3;
etcd="FU";
element="Follow-up";
tabranch="";
tatrans="";
epoch="FOLLOW-UP";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
*------------------------------------------------------------------------------;
*Set variables for 3rd trial arm "PBO" to denote Placebo biweekly dosage of 600 mg
for 2 weeks.;
*------------------------------------------------------------------------------;
armcd="PBO";
arm="Placebo Q2W";
/*Create observation rows for element 1: Screening for 3rd trial arm with armcd=PBO.*/
taetord=1;
etcd="SCRN";
element="Screening";
tabranch="Randomized to Placebo Q2W";
tatrans="";
epoch="SCREENING";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 2: Treatment for 3rd trial arm with armcd=PBO.*/
taetord=2;
etcd="PBO";
element="Placebo Q2W";
tabranch="";
tatrans="";
epoch="TREATMENT";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
/*Create observation rows for element 3: Follow-up for 3rd trial arm with armcd=PBO.*/
taetord=3;
etcd="FU";
element="Follow-up";
tabranch="";
tatrans="";
epoch="FOLLOW-UP";
output;
/*Reset variable values to missing for next element.*/
call missing(taetord, etcd, element, tabranch, tatrans, epoch);
run;