Calculates martingale, deviance or Cox-Snell residuals for a previously fitted (deepAFT) model.
## S3 method for class 'deepAFT'
# S3 method for dSurv
residuals(object, type = c("martingale", "deviance", "coxSnell"), ...)
For martingale and deviance residuals, the returned object is a vector with one element for each subject. The row order will match the input data for the original fit.
See residuals
for more detail about other output values.
the results of a (deepAFT) fit.
character string indicating the type of residual desired. Possible values are "martingale", "deviance". Only enough of the string to determine a unique match is required.
other unused arguments.
Bingshu E. Chen
residuals.deepAFT is called to compute baseline survival function S_T0(t) from the deepAFT model deepAFT
, where T0 = T/exp(mu), or log(T) = log(T) - mu.
The default method, residuals has its own help page. Use methods("residuals") to get all the methods for the residuals generic.
The default method for residuals residuals
,
predict.dSurv
, survfit.dSurv
, and deepAFT
.