predict.regsurv | R Documentation |
Predictions for a regsurv model
## S3 method for class 'regsurv'
predict(
object,
prep,
lambda.index,
newdata = NULL,
type = c("cumhazard", "surv"),
...
)
object |
regsurv object |
prep |
survprep object used to fit the regsurv model |
lambda.index |
lambda index for the required predictions (e.g. optimal value based on cross-validation) |
newdata |
if provided, this should be a matrix with untransformed time-to-event in the first column and the model.matrix for for main main predictor effects as would be provided to survprep() |
type |
type of prediction ("cumhazard" or "surv") |
... |
as for predict() |
prediction of the requested type
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.