residuals.robmixglm {robmixglm} | R Documentation |
Extract Model Residuals
Description
Extracts model residuals from objects returned by modeling functions.
Usage
## S3 method for class 'robmixglm'
residuals(object, type = c("deviance", "pearson"), ...)
Arguments
object |
an object for which the extraction of model residuals is meaningful. |
type |
Type of residual where valid types are deviance and pearson. |
... |
other arguments. |
Value
Residuals extracted from the object object
.
Examples
library(MASS)
data(forbes)
forbes.robustmix <- robmixglm(bp~pres, data = forbes, cores = 1)
BIC(forbes.robustmix)
plot(fitted(forbes.robustmix), residuals(forbes.robustmix))
[Package robmixglm version 1.2-3 Index]