Calculate the residuals from an INLA model
# S4 method for inla fitted(object, ...)
object | an object for which the extraction of model fitted values is meaningful. |
---|---|
... | other arguments. |
Other statistics: dispersion
,
get_observed
,
residuals,inla-method
library(INLA) set.seed(20181202) model <- inla(#' poisson ~ 1, poisson ~ 1, family = "poisson", data = data.frame( poisson = rpois(20, lambda = 10), base = 1 ), control.predictor = list(compute = TRUE) ) fitted(model)#> [1] 11.07510 11.07530 11.07469 11.07489 11.07496 11.07469 11.07482 11.07462 #> [9] 11.07503 11.07523 11.07503 11.07496 11.07523 11.07523 11.07489 11.07516 #> [17] 11.07482 11.07503 11.07469 11.07489