Skip to contents

get the observed values from the model object

Usage

get_observed(object)

Arguments

object

the INLA model

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)
)
get_observed(model)
#>  [1] 13 16  7 10 11  7  9  6 12 15 12 11 15 15 10 14  9 12  7 10