Learn R Programming

dnn (version 0.0.6)

msePICW: Mean Square Error (mse) for a survival Object

Description

Compute Mean Square Error (mse) values for a survival object

Usage

## S3 method for class 'deepAFT'
mseIPCW(object, newdata, newy)

Value

mseIPCW returns the mse for the predicted survival data.

Arguments

object

the results of a model fit using a deepAFT or a survreg 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.

Author

Bingshu E. Chen

Details

predict is called to predict object from a deepAFT deepAFT or a survreg model.

IPCW method is used to calcuate the mean square error for censored survival time.

See Also

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