简体   繁体   English

如何从 R 中随机生存森林的 cox 回归计算 X 年生存概率

[英]How to calculate X-year survival probability from a cox regression of random survival forest in R

I want to build a survival model then calculate the X-year (eg 10-year) risk of survival.我想建立一个生存 model 然后计算 X 年(例如 10 年)的生存风险。

Is there a way to do this using coxph or survreg?有没有办法使用 coxph 或 survreg 做到这一点? Is this possible using random survival forest (eg ranger)?这可能使用随机生存森林(例如游侠)吗?

PS not sure if important but data is wide (~100 features - mostly continuous) and 17k samples. PS 不确定是否重要,但数据很宽(约 100 个特征 - 大部分是连续的)和 17k 个样本。

For anyone else trying to do the same.对于其他试图做同样事情的人。 If you build a cox-model with survival::coxph or rms::cph you can use the function pec::predictSurvProb .如果您使用survival::coxphrms::cph构建cox 模型,则可以使用function pec::predictSurvProb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM