predict | R Documentation |
Compute predicted values for a deepAFT object
## S3 method for class 'deepAFT'
## S3 method for class 'dSurv'
predict(object, newdata, newy=NULL, ...)
object |
the results of a model fit using the deepAFT function. |
newdata |
optional new data at which to do predictions. If absent, predictions are for the dataframe used in the original fit. |
newy |
optional new outcome variable y. |
... |
other options used in predict(). |
predict.dSurv is called to predict object from the deepAFT or deepSurv model deepAFT
.
The default method, predict has its own help page. Use methods("predict") to get all the methods for the predict generic.
predict.dSurv returns a list of predicted values, prediction error and residuals.
lp |
linear predictor of beta(w)*Z, where beta(w) is the fitted regression coefficient and Z is covariance matrix. |
risk |
risk score, exp(lp). When new y is provided, both lp and risk will be ordered by survival time of the new y. |
cumhaz |
cumulative hzard function. |
time |
time for cumulative hazard function. Time from new y will be used is provided |
Bingshu E. Chen
The default method for predict predict
,
deepAFT
, survfit.dSurv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.