Skip to main content
Dryad

Replicate analysis from: Measuring complexity for hierarchical models using effective degrees of freedom

Data files

Apr 22, 2024 version files 5.42 MB

Abstract

Hierarchical models can express ecological dynamics using a combination of fixed and random effects, and measurement of their complexity (effective degrees of freedom, EDF) requires estimating how much random effects are shrunk towards a shared mean.  Estimating EDF is helpful to (1) penalize complexity during model selection and (2) to improve understanding of model behavior.  I apply the conditional Akaike Information Criterion (cAIC) to estimate EDF from the finite-difference approximation to the gradient of model predictions with respect to each datum.  I confirm that this has similar behavior to widely used Bayesian criteria, and I illustrate ecological applications using three case studies.  The first compares model parsimony with or without time-varying parameters when predicting density-dependent survival, where cAIC favors time-varying demographic parameters more than conventional AIC.  The second estimates EDF in a phylogenetic structural equation model, and identifies a larger EDF when predicting longevity than mortality rates in fishes.  The third compares EDF for a species distribution model (SDM) fitted for twenty bird species and identifies those species requiring more model complexity.  These highlight the ecological and statistical insight from comparing EDF among experimental units, models, and data partitions, using an approach that can broadly adopted for nonlinear ecological models.