I want to build a survival model then calculate the X-year (eg 10-year) risk of survival.
Is there a way to do this using coxph or 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.
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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.