residuals: Calculate the Residuals From an INLA Model

residuals,inla-methodR Documentation

Calculate the Residuals From an INLA Model

Description

Calculate the Residuals From an INLA Model

Usage

## S4 method for signature 'inla'
residuals(
  object,
  type = c("pearson", "deviance", "working", "response", "partial"),
  ...
)

Arguments

object

An inla object.

type

Currently only Pearson residuals are available. Other types are only listed for compatibility with the default residuals function.

...

Currently ignored.

See Also

Other statistics: dispersion(), fitted,inla-method, get_observed()

Examples

library(INLA)
set.seed(20181202)
model <- inla(
  poisson ~ 1,
  family = "poisson",
  data = data.frame(
    poisson = rpois(20, lambda = 10),
    base = 1
  ),
  control.predictor = list(compute = TRUE)
)
residuals(model)

inbo/inlatools documentation built on Sept. 17, 2022, 2:13 p.m.