推 jijip:借轉(Orz) 192.192.90.202 02/01
※ [本文轉錄自 PH-90 看板]
作者: Hsuanly (LW) 看板: PH-90
標題: [公告]衛生資訊作業
時間: Wed May 26 12:43:03 2004
【請同學利用dps軟體依附件實作習題,並於下週課前mail給老師】
Disease Prediction System習題
環境設定
設定參考名稱 wtrial 指定至 c:\dps\wtrial
dps 指定至 c:\dps
1.請合併wtrial參考名稱中tx1, tx2 二個dataset,使用ID variable為sort variable,
並將結果存入tx12檔案中,總筆數為 ___________。 (Merge)
2.請將text12檔案中(下述於c:\dps\wtrial\record.pro.doc檔案中有範例,可直接複製
、貼上) ,並將最後結果存於tx_reco檔案。
完成 是 ___ 否 ___ (Recode/Compute)
(1)nodes變項之值 -1 改為missing(.),
if nodes=-1 then nodes=.;
(2)size變項值分六組,編碼後之值存存腫瘤大小細分變項(sizegp)中
sizegp=0;
if size=-1 then sizegp=.;
else if size>=0 and size<=9 then sizegp=0;
else if size>=10 and size<=14 then sizegp=2;
else if size>=15 and size<=19 then sizegp=3;
else if size>=20 and size<=29 then sizegp=4;
else if size>=30 and size<=49 then sizegp=5;
else if size>=50 then sizegp=6;
(3)請將淋巴侵襲(nodes)、腫瘤大小細分(sigegp)及組織分化(grade)變項產生虛擬變
項(dummy variable)。 (Recode/Compute)
n1=0; n2=0;
if nodes=1 then n1=1;
if nodes=2 then n2=1;
if nodes=. then
do; n1=.; n2=.; end;
g3=0; g2=0;
if grade=2 then g2=1;
if grade=3 then g3=1;
if grade=. then
do; g2=.; g3=.; end;
dsize0=0; dsize2=0; dsize3=0;
dsize4=0; dsize5=0; dsize6=0;
if sizegp=0 then dsize0=1;
if sizegp=2 then dsize2=1;
if sizegp=3 then dsize3=1;
if sizegp=4 then dsize4=1;
if sizegp=5 then dsize5=1;
if sizegp=6 then dsize6=1;
if sizegp=. then do;
dsize0=.; dsize2=.; dsize3=.; dsize4=.;
dsize5=.; dsize6=.; end;
3.請隨機抽樣(simple random sampling) 100筆tx_reco檔案之資料,將抽樣資料存入
tx_reco100檔案中。
完成 是 ___ 否 ___ (Sampling)
下列題目請使用 wtrial.txsurv資料檔
4.請利用邏輯式迴歸分析,自變項為 n1, n2, g2, g3, dsize0, dsize2, dsize3,
dsize4, dsize5, dsize6, 依變項為 bi_causeod,(實驗組請將模式儲存於
wtrial.model.tx_logi中),以評估腫瘤大小、淋巴侵襲及組織分化對死亡的影響,
請寫出下列迴歸係數
n1 _______, n2________ 。 (Model Selection)
g2 _______, g3________
5.利用上述之邏輯式?歸分析請求出 (Model Verification/Diagnostic)
(1)Overdispension 之prob chisq值 ____________
(2)以hat matrix(H) check Outlier之值中,其值在0.06以上有幾個個案數 _______
(3)機率在0.4為標準之敏感度及精確度 ________ _________
(Classification table)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.120.83
※ 編輯: Hsuanly 來自: 140.112.120.83 (05/26 13:35)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.120.83