| distribution_check | R Documentation | 
Use simulations to compare the observed distribution with the modelled distribution
distribution_check(object, nsim = 1000, seed = 0L)
## S4 method for signature 'inla'
distribution_check(object, nsim = 1000, seed = 0L)
| object | the INLA model | 
| nsim | the number of simulation | 
| seed | See the same argument in  | 
Other checks: 
dispersion_check(),
fast_aggregation_check(),
fast_distribution_check(),
get_anomaly()
library(INLA)
model <- inla(
  poisson ~ 1,
  family = "poisson",
  data = data.frame(
    poisson = rpois(20, lambda = 10),
    base = 1
  ),
  control.predictor = list(compute = TRUE),
  control.compute = list(config = TRUE)
)
distribution_check(model, seed = 20181202)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.