從頭開始寫 ADaM- ADSL

ADaM Day 1

In clinical trials, ADSL(Subject-Level Analysis Dataset) is the foundation of all ADaM analysis dataset, it is one record per subjects; it captures subjects' population flag ??, treatment-related info, vital sign info♂, baseline disease info, and other info respect to different study designs.

[caption id="attachment_2024" align="alignnone" width="750"]

realworkhard / Pixabay[/caption]

General Steps:

  1. Import any Disease related document in excel or csv format,
    ex: Lines of Antilymphoma Therapy

    2. Demographic Dataset (raw.dm)
    Ex. studyid , subjid , siteid, age=(infcdt-birth+1)/365.25 , sex, race, agegrp

    3. Treatment Discontinuation from ECRF page & Study Discontinuation

data ds;
set ds;
where pagename="Treatment Disposition";
if statusn=1 then status1="Completed";
if statusn=2 then status2="Discontinued";
dsreas= strip(dsterm);
keep pt dsdt dstreas dstreasn ;
run;
  1. Death Info
data death;
set raw.dth;
if dsdt>.;
dthreas=strip(dscause);
keep pt dthdt dthreas ptnm;
run;
5.Exposure of Study Treatment

treatment start/end date, cycle length info, treatment group

proc sql noprint;
create table ex as select unique pt,
  min(exstdt) as trsdt format=date9\. label="First Dose Date", 
    max(exendt) as tredt format=date9\. label="Last Dos Date"
    from raw.ex where exdose > .
  group by pt order by pt;
quit;
6. Chemistry Lab test results.
data chem;
set raw.chem;
run;

baseline creatinine, LDH
7. Disease Stage History: Initial Diagnosis, Enrollment
xSTIN: stage at Initial Diagnosis
Value : I, II, III, IV , unknown

xSTEN: Stage at Enrollment 
Value : I, II, III, IV, 
*note: xSTEN there is no-unknown
8. Prior Radiation
data rad;
set raw.prt;
by pt prtstdtf repeatsn;
if first.prtstdtf;
run;
9. Prior Systemic Therapy Lines
data pline;
set raw.psata;
keep patstdt patendt patseqn(prior therapy/reginmen number);
run;

data nsys;
     retain nsystem 0;
     set pline;
     by pt patseqn;
     if first.pt then nsystem = 1;
     else nsystem+1;
     if last.pt;
     drop patseqn; 
run;
10. Other prior anti-cancer therapy
proc sort data= raw.psata out=pr1(keep=pt genrnm repeatsn);
     by pt genrnm repeatsn;
  where pagename="Other Prior Anti-Cancer Therapies for this Disease";
run;
11. Baseline Chemo Lab Result
*LDH example;
data lab2;
     length bldhg $30 bldhgrp $30 ;
     set lab2;
   by pt lbdt;
   if last.pt;
   if 53 <= labval <= 234 then do;
        bldhg = "Normal";
     end; 
   else if labval > 234 then do;
        bldhg = "> Upper limit of normal (ULN)";
     end;
run;
12. Reproductive Status
proc sort data=raw.pt out=pt2(keep= pt child);
     where CHILD ne '';
   by pt;
run;

data dm;
merge dm(in=a) pt2(in=b);
by pt;
run;

data dm;
set dm;
if sex="F" and child="Yes" then repro="Y";
if sex="F" and child="No" then repro="N";
drop child;
run;
13. VS: Height, Weight, BSA, BMI
proc sort data=raw.vs1 out=vsn(keep=ht wt pt vsdt) nodupkey;
     by pt descending vsdt;
run;

data vs_new1;
     merge vsn(in=a) ex(keep=pt tr01sdt);
   by pt;
   if . < vtdt <= tr01sdt;
run;

data vs_new2;
     set vs_new1;
   by pt vtdt;
     if last.pt;
bsa= sqrt((bheight*bweight)/3600);
bmi= bweight/((bheight*0.01)**2);
run;
14. ECG, ECOG Performance Status at Enrollment (Screening)
ECG.EGINTP where visit=1
S_QS2.SQSRES2 where visit=1 (VISNAME='Screening (Day -28 to -1)')
15.Refractory and Relapse

Refractory: does not respond to treatment
Relapse: despite the best care and significant progress made in treatment, cancer comes back

16. Miscellaneous :

Prior stem Cell Therapy, Other prior anti-cancer therapy, Bone Marrow, X-Symptom at Screening, Eligibility (raw.elig, eligyn="yes"), Follow up (raw.fugate, entfuv="yes")

17. Population Flag.

Safety Flag, ITT Population Flag, Efficacy Evaluable Flag note: each study has different rules of derivations.

Final ADSL Dataset Wrap up:

data adsl;
  format trtedt date9.;
  merge dm(in=dm) ex(in=ex death rand(in=rand)  nhl enroll vs nhlhis creat  
        ecog ecg elig(in=elig) crcl fu  spd  nprit ivr lab2 hema2 BSYMPT bc(in=bc) ;
  by pt;
  if dm;

  rename cycdrug1=ncyclen cycdrug2=ncycrit last1=LCYCLEN last2=LCYCRIT
      ;
      label
        SEXN = "Gender"
        agegrp1N = "Age group (N) <x vs >=x"
        RACEGR1N = "Race";
 run;

Dummy ADSL Dataset with Label

adsl.PNG
adsl1.PNG

Note: since every study design is different, there is no one-fits-all formula for creating ADSL dataset. I hope these descriptions provide a general idea of ADSL dataset ?.
Thanks Moe and Xueying explain the Refractory and Relapse concept to me!

Happy Practicing! ??

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 228,606評論 6 533
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 98,582評論 3 418
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 176,540評論 0 376
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,028評論 1 314
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 71,801評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 55,223評論 1 324
  • 那天,我揣著相機(jī)與錄音,去河邊找鬼。 笑死,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,294評論 3 442
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 42,442評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 48,976評論 1 335
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 40,800評論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 42,996評論 1 369
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,543評論 5 360
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 44,233評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,662評論 0 26
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,926評論 1 286
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,702評論 3 392
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 47,991評論 2 374

推薦閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,392評論 0 10
  • 快過年了,需要回趟老屋,整理母親的衣物,找出過年穿的大衣外套,初一全家聚餐,要把九十多歲身體不便的母親抬到...
    云淡風(fēng)也靜閱讀 134評論 0 0
  • 其實(shí)這個故事不是發(fā)生在自己身上,但是就是自己的親人身上,我還被無辜冤枉。 就上個星期表妹說要給我介紹人認(rèn)識認(rèn)識...
    向日葵嘚girl閱讀 1,450評論 0 0