全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3496 4
2015-02-27
悬赏 600 个论坛币 已解决
指定生存分析风险比HR,  模拟产生一个相应的生存数据集。

如: 指定HR=4,模拟产生数据集SURV, SURVE中有变量GRP(分组:1,0), TIME(生存时间),STATUS(状态,0表示右删失)。

最佳答案

jingju11 查看完整内容

when simulating survival data, you need to know or assume the distribution of the survival time. For example, in the following code, i assume t~exp(1), and the right censored at end of follow-up by 2 years. I may develop more dists in my blog later on.JingJu
二维码

扫码加我 拉你入群

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

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

全部回复
2015-2-27 20:32:55
when simulating survival data, you need to know or assume the distribution of the survival time. For example, in the following code, i assume t~exp(1), and the right censored at end of follow-up by 2 years.
I may develop more dists in my blog later on.
复制代码
JingJu
二维码

扫码加我 拉你入群

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

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

2015-2-28 12:54:20
jingju11 发表于 2015-2-28 07:17
when simulating survival data, you need to know or assume the distribution of the survival time. For ...
非常感谢, 期待!
二维码

扫码加我 拉你入群

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

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

2015-2-28 16:31:36
jingju11 发表于 2015-2-28 07:17
when simulating survival data, you need to know or assume the distribution of the survival time. For ...
我找到了Ralf Bender的PAPER:Generating Survival Times to Simulate Cox Proportional Hazards Models  , 非常好的参考,也非常感谢京剧大哥的帮助!
二维码

扫码加我 拉你入群

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

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

2015-3-20 11:33:42
jingju11 发表于 2015-2-27 20:32
when simulating survival data, you need to know or assume the distribution of the survival time. For ...
再次请教京剧大哥,如果考虑再加一个和分组相关的协变量, 可行吗?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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