fast_aggregation_check: Fast aggregation check Compare the observed and modelled...

fast_aggregation_checkR Documentation

Fast aggregation check Compare the observed and modelled aggregated values.

Description

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 signature '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

See Also

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


inbo/inlatools documentation built on Oct. 10, 2024, 8:11 a.m.