從頭開始寫 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)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末尔觉,一起剝皮案震驚了整個(gè)濱河市诺凡,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌昏翰,老刑警劉巖别洪,帶你破解...
    沈念sama閱讀 212,454評(píng)論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)罐氨,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,553評(píng)論 3 385
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來消恍,“玉大人岂昭,你說我怎么就攤上這事『菰梗” “怎么了?”我有些...
    開封第一講書人閱讀 157,921評(píng)論 0 348
  • 文/不壞的土叔 我叫張陵邑遏,是天一觀的道長佣赖。 經(jīng)常有香客問我,道長记盒,這世上最難降的妖魔是什么憎蛤? 我笑而不...
    開封第一講書人閱讀 56,648評(píng)論 1 284
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上俩檬,老公的妹妹穿的比我還像新娘萎胰。我一直安慰自己,他們只是感情好棚辽,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,770評(píng)論 6 386
  • 文/花漫 我一把揭開白布技竟。 她就那樣靜靜地躺著,像睡著了一般屈藐。 火紅的嫁衣襯著肌膚如雪榔组。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,950評(píng)論 1 291
  • 那天联逻,我揣著相機(jī)與錄音搓扯,去河邊找鬼。 笑死包归,一個(gè)胖子當(dāng)著我的面吹牛锨推,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播公壤,決...
    沈念sama閱讀 39,090評(píng)論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼换可,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼!你這毒婦竟也來了境钟?” 一聲冷哼從身側(cè)響起锦担,我...
    開封第一講書人閱讀 37,817評(píng)論 0 268
  • 序言:老撾萬榮一對(duì)情侶失蹤萌狂,失蹤者是張志新(化名)和其女友劉穎伦腐,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體稽寒,經(jīng)...
    沈念sama閱讀 44,275評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡缚态,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,592評(píng)論 2 327
  • 正文 我和宋清朗相戀三年磁椒,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片玫芦。...
    茶點(diǎn)故事閱讀 38,724評(píng)論 1 341
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡浆熔,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出桥帆,到底是詐尸還是另有隱情医增,我是刑警寧澤,帶...
    沈念sama閱讀 34,409評(píng)論 4 333
  • 正文 年R本政府宣布老虫,位于F島的核電站叶骨,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏祈匙。R本人自食惡果不足惜忽刽,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 40,052評(píng)論 3 316
  • 文/蒙蒙 一天揖、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧跪帝,春花似錦今膊、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,815評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至纸泄,卻和暖如春赖钞,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背聘裁。 一陣腳步聲響...
    開封第一講書人閱讀 32,043評(píng)論 1 266
  • 我被黑心中介騙來泰國打工雪营, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人衡便。 一個(gè)月前我還...
    沈念sama閱讀 46,503評(píng)論 2 361
  • 正文 我出身青樓献起,卻偏偏與公主長得像,于是被迫代替她去往敵國和親镣陕。 傳聞我的和親對(duì)象是個(gè)殘疾皇子谴餐,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,627評(píng)論 2 350

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

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