全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
8252 0
2016-03-17
朋友告知生存分析中的frailty model,可能等效于多水平模型的随机截距(random intercept)模型。之前对于frailty model只是一知半解,如果确实等效于多水平模型的随机截距(random intercept)模型,这对于理解frailty model可能是一个很好的帮助。

根据SAS中的相关文件的介绍(来源
http://support.sas.com/resources/papers/proceedings14/1492-2014.pdf),所谓“脆弱因子”(暂且以此命名)是指:个体间(或群组间)存在差异,有些人更脆弱(如早死),有些人强健。如果不管这些的话,可能会造成脆弱的人风险低估,而强健的人风险高估。同时这种脆弱因子是不能够完全由已知的变量解释的,总是会有未观察到的效应 或随机效应存在,所以要有个脆弱因子的变量来解释。同时这种脆性因子可能有两种来源: univariate (来自于个体重复测量数据之间的同质性)和multivariate(来源于同一群组个体间的同质性)。从这种意义上来说, 确实类似多水平模型:
但是通过比较stata中的streg模块构建的frailty model和mestreg 模块构建的随机截距模型, 发现两者并不等价。希望求证两者等价的证据。

以下是两者比较的程序:
webuse catheter,clear
stset time infect

/*Two-level random-intercept weibull survival model */
mestreg age female || patient:, distribution(weibull)
streg age female, dist(weibull) frailty(gamma)

mestreg age female || patient:, distribution(weibull) nolrtest
streg age female, dist(weibull) frailty(gamma) nolrtest

/*Two-level random-intercept lnormal survival model */
mestreg age female || patient:, distribution(weibull) nohr
mestreg age female || patient:, distribution(lnormal)
streg age female, dist(lnormal) frailty(gamma)
streg age female, dist(lnormal) frailty(gamma) shared(patient)
streg age female, dist(lnormal) frailty(invgauss) shared(patient)

/*Two-level random-intercept Weibull survival model in the accelerated failure-time metric */
mestreg age female || patient:, distribution(weibull) time
streg age female, dist(weibull) frailty(gamma) time

mestreg age female || patient:, distribution(weibull) time nolrtest
streg age female, dist(weibull) frailty(gamma) time nolrtest



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群