predict {dnn}R Documentation

Predicted Values for a deepAFT Object

Description

Compute predicted values for a deepAFT object

Usage

## S3 method for class 'deepAFT'
## S3 method for class 'dSurv'
predict(object, newdata, newy=NULL, ...)

Arguments

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().

Details

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.

Value

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

Author(s)

Bingshu E. Chen

See Also

The default method for predict predict, deepAFT, survfit.dSurv


[Package dnn version 0.0.6 Index]