View source: R/residuals.dSurv.R
msePICW | R Documentation |
Compute Mean Square Error (mse) values for a survival object
## S3 method for class 'deepAFT'
mseIPCW(object, newdata, newy)
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. |
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.
mseIPCW returns the mse for the predicted survival data.
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.