fitted,inla-method | R Documentation |
Extract the fitted values from an INLA model
## S4 method for signature 'inla'
fitted(object, ...)
object |
an object for which the extraction of model fitted values is meaningful. |
... |
other arguments. |
Other statistics:
dgpoisson()
,
dispersion()
,
get_observed()
,
residuals,inla-method
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.