fitted: Extract the fitted values from an INLA model

fitted,inla-methodR Documentation

Extract the fitted values from an INLA model

Description

Extract the fitted values from an INLA model

Usage

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

Arguments

object

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

...

other arguments.

See Also

Other statistics: 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)

inbo/inlatools documentation built on Sept. 17, 2022, 2:13 p.m.