第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

SAS day 17: Proc Phreg

One day, my boss took a glance at a table with Hazard Ratio and Median Survival Time then he told me the program set the reference group in Proc Phreg wrong.

It turns out he was correct after validating the program. However, I was very curious about how did he figure it out by an Augenblick. Then he shared with us some knowledge about Hazard Ratio and Proc Phreg.

Background knowledge

Hazard Ratio: HRs represent instantaneous risk over the study time period.

Median Survival Time: The time after which 50 percent of people with a particular condition are still living, and 50 percent have died.

Median survival time and Hazard Ratio

if Median(A) > Median(B) then HR(A) < HR(B), vice versa.

Without Loss of Generality, if the median survival time of group A is significantly higher than group B, then Hazard Ratio of group A is smaller than Hazard Ratio of group B, vice versa.

[caption id=“attachment_1056” align=“alignnone” width=“750”]image

qimono / Pixabay[/caption]

**Example  **

Now we will demonstrate Proc Phreg with Hazard Ratio with Sashelp.BMT dataset.

Basic Proc Phreg Syntax

Proc phreg data=a;
class x ; /*ref(x) only character value, the lowest character value is reference*/
model x*y= a/rl ; /*can input more than one variable on the RHS of the equation. rl:risk limit (eßt)*/
by z;/*optional*/ 
id m;/*optional*/
run;
  1. Read in the sashelp.BMT dataset and only consider AML Low Group and AML High Group
    Note: Hazard Ratio is usually designed for two-level comparison,
    we will introduce 3-level comparison next time.
data aml;
set sashelp.bmt;
if group="AML-Low Risk" then ref="0";
if group="AML-High Risk" then ref="1";
if ref in("0","1");
run;

image

2.  Apply Proc Phreg to generate the hazard ratio

proc phreg data=aml outest=est61 covout;
class ref;
model T*status(0)=ref/rl;
run;

image

Results:

From the output, we have Hazard Ratio=0.39, which means the probability a patient in AML high Group survives until today and will survive until tomorrow, compared with the AML Low Group Reduced by 0.39.

Validation:

As we mentioned earlier, if Hazard Ratio <1 then we expected a longer survival median time in AML Low Group. The following Kaplan Meier plot demonstrated the AML Low Group indeed has a larger survival median.

image

proc lifetest data=aml plots=survival;
time T*status(0);
strata Group;
run;

Thanks very much to Joe wang to share the Proc Phreg knowledge with me, we will show the 3-level Hazard Ratio in Proc Phreg next time!

Happy studying! 🐰

點擊查看更多內(nèi)容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評論
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊有機(jī)會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機(jī)會
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消