get the observed values from the model object
get_observed(object)
object | the INLA model |
---|
Other statistics: dispersion
,
fitted,inla-method
,
residuals,inla-method
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