This is my model:
library(eha)
fit.aft <- aftreg(formula = Surv(time, status) ~ age + sex, data = kidney,
dist = "lognormal")
however this is what I see if I want to use predict:
predict(fit.aft)
Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "c('aftreg', 'phreg')"
Could someone let me know how to predict in using survival models.
predictSurvProb
– cuttlefish44