Skip to contents

Extract the fitted values from an INLA model

Usage

# S4 method for class 'inla'
fitted(object, ...)

Arguments

object

an object for which the extraction of model fitted values is meaningful.

...

other arguments.

See also

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