Closed thialam closed 3 years ago
This is why I made distr6! Code below untested (I can't remember the output names so double check these if it fails):
breast_deepsurvall <- predict(breast_deepsurv, newdata = testing.naomit, times=300, distr6 = TRUE)
breast_deepsurvall$surv$survival(1000) # compute survival prob at T = 1000
You're a star! Works very smoothly. Thank you so so much. I'll close this now:)
Huge kudos and thank you to you and your package, Raphael. Really appreciate your generosity.
The project idea is to compare a few predictive survival models on a patient dataset - using a simple
coxph
, and thanks to your package,deepsurv
and others.The question is - Is it possible to use
deepsurv
to predict the survival probability of a patient at a unique time point? How can I do that? (See below my humble attempt...) I was able to do it on coxph, but not successfully using deepsurv - and deepsurv's predictions are always at weird time points, and not continuous (I wonder if the reason is they are not recognised as time?).I hope what I say makes sense - it's getting late in my timezone and my brain is a mush 🙃.
Created on 2021-04-21 by the reprex package (v2.0.0)
Many many thanks! ☺️