Code
predict(f_fit, head(lung), type = "survival")
Condition
Error in `predict()`:
! When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given.
Code
predict(f_fit, head(lung), type = "hazard")
Condition
Error in `predict()`:
! When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given.
Code
wt_fit$fit$call
Output
flexsurv::flexsurvspline(formula = Surv(time, status) ~ age +
sex, data = data, weights = weights, k = ~1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.