Skip to contents

Extracts residuals from a glmsusie model fit.

Usage

# S3 method for class 'glmsusie'
residuals(object, type = c("deviance", "pearson", "response", "working"), ...)

Arguments

object

A fitted model object of class "glmsusie".

type

Character string indicating the type of residuals to be returned:

  • "deviance": deviance residuals

  • "pearson": Pearson residuals

  • "response": response residuals (observed - fitted)

  • "working": working residuals

...

Additional arguments (not used).

Value

A numeric vector of residuals.