Extract the fitted values from an INLA model
Usage
# S4 method for class 'inla'
fitted(object, ...)
See also
Other statistics:
dgpoisson()
,
dispersion()
,
get_observed()
,
residuals,inla-method
Examples
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.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05
#> [13] 11.05 11.05 11.05 11.05 11.05 11.05 11.05 11.05