residuals.caretx | R Documentation |
Computes extended working residuals of prediction and potential outliers.
## S3 method for class 'caretx'
residuals(object, newdata = NULL, ...)
## S3 method for class 'predx'
residuals(object, ...)
object |
|
newdata |
test data set. |
... |
extra arguments, currently none. |
Calculates working residuals for regression and binary classification predictions. In addition, squared and standardized residuals are returned along with expected normal distribution values for the standardized residuals and the true outcome. Potential outliers are identified by the two-SD criterion. Returns NULL for multi-class models.
a list of data frames for the test, resample (CV) and training data set prediction with residuals and potential outliers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.