Calculate the residuals from an INLA model

# S4 method for 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

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)
#> [1] 0.57840962 1.47979684 -1.22441467 -0.32299422 -0.02252443 -1.22441467 #> [7] -0.62346586 -1.52489185 0.27794352 1.17933628 0.27794352 -0.02252443 #> [13] 1.17933628 1.17933628 -0.32299422 0.87887387 -0.62346586 0.27794352 #> [19] -1.22441467 -0.32299422