residuals.robmixglm | R Documentation |
Extracts model residuals from objects returned by modeling functions.
## S3 method for class 'robmixglm'
residuals(object, type = c("deviance", "pearson"), ...)
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. |
Residuals extracted from the object object
.
library(MASS)
data(forbes)
forbes.robustmix <- robmixglm(bp~pres, data = forbes, cores = 1)
BIC(forbes.robustmix)
plot(fitted(forbes.robustmix), residuals(forbes.robustmix))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.