Checks

Useful functions to validate a model

dispersion_check()

Use simulations to check for overdispersion or underdispersion

distribution_check()

Use simulations to compare the observed distribution with the modelled distribution

fast_distribution_check()

Use simulations to compare the observed distribution with the modelled distribution

Setting priors

Get a grasp of potential effect of random effects with a specified standard error sigma or precision tau

plot(<sim_iid>)

Plot simulated random intercepts

plot(<sim_rw>)

Plot simulated random walks

select_change()

select fast changing simulations from an 'sim_rw' object

select_divergence()

select diverging simulations from an 'sim_rw' object

select_poly()

Select random walks best matching some polygon coefficients

select_quantile()

select the quantiles from an 'sim_rw' object

simulate_iid()

simulate data from a second order random walk

simulate_rw()

simulate data from a second order random walk

Statistics

dispersion()

Calculate a measure for dispersion

fitted(<inla>)

Calculate the residuals from an INLA model

get_observed()

get the observed values from the model object

residuals(<inla>)

Calculate the residuals from an INLA model

Utils

generate_data()

Generate dummy data with several distributions

plot(<dispersion_check>)

Plot the results from a dispersion check

plot(<distribution_check>)

Plot the results from a distribution check