residuals: Extract Model Residuals

residuals.robmixglmR 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))

robmixglm documentation built on May 9, 2022, 9:08 a.m.