fast_distribution_check: Use simulations to compare the observed distribution with the...

fast_distribution_checkR Documentation

Use simulations to compare the observed distribution with the modelled distribution

Description

This check uses the fitted values and thus ignores the uncertainty on the predictions

Usage

fast_distribution_check(object, nsim = 1000)

## S4 method for signature 'inla'
fast_distribution_check(object, nsim = 1000)

## S4 method for signature 'list'
fast_distribution_check(object, nsim = 1000)

Arguments

object

the INLA model

nsim

the number of simulation

See Also

Other checks: dispersion_check(), distribution_check(), get_anomaly()

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)
)
fast_distribution_check(model)

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