Skip to contents

Fast aggregation check Compare the observed and modelled aggregated values.

Usage

fast_aggregation_check(
  object,
  grouping_vars,
  fun = sum,
  remove_na = TRUE,
  nsim = 1000
)

# S4 method for class 'inla'
fast_aggregation_check(
  object,
  grouping_vars,
  fun = sum,
  remove_na = TRUE,
  nsim = 1000
)

Arguments

object

the INLA model

grouping_vars

character vector of variable names to group by.

fun

function to apply to the aggregated values.

remove_na

logical. Indicated whether to remove observations where the response variable is a missing values.

nsim

the number of simulation