Assume a parametric survival model:
surv <- Surv(time, event)
surv.reg.t <- survreg(surv ~ 1, dist = "t", data = myData)
It is possible to predict the percentile for one given case by
pct=1:9000/10000
predict.t = predict(surv.reg.t, newdata=data.frame(F = "X"), type='quantile', p=pct, se=TRUE)
This is the way described in How to predict survival probabilities in R and How to make prediction in survival analysis using R. In these answers the value of the survivor function is given, and the event time is predicted.
However, how to predict the survivor function given some event time x
? Is there a way to use survreg.predict
? If not how can I do this using the coefficients of surv.reg.t
when the distribution dist="t"
is used?