dalmatian: A Package for Fitting Double Hierarchical Linear Models in R via JAGS and nimble

Simon Bonner, Ariane Mutzel, Han Na Kim, David Westneat, Jonathan Wright, Matthew Schofield

Research output: Contribution to journalArticlepeer-review

4 Scopus citations

Abstract

Traditional regression models, including generalized linear mixed models, focus on understanding the deterministic factors that affect the mean of a response variable. Many biological studies seek to understand non-deterministic patterns in the variance or dispersion of a phenotypic or ecological response variable. We describe a new R package, dalmatian, that provides methods for fitting double hierarchical generalized linear models incorporating fixed and random predictors of both the mean and variance. Models are fit via Markov chain Monte Carlo sampling implemented in either JAGS or nimble and the package provides simple functions for monitoring the sampler and summarizing the results. We illustrate these functions through an application to data on food delivery by breeding pied flycatchers (Ficedula hypoleuca). Our intent is that this package makes it easier for practitioners to implement these models without having to learn the intricacies of Markov chain Monte Carlo methods.

Original languageEnglish
JournalJournal of Statistical Software
Volume100
Issue number10
DOIs
StatePublished - 2021

Bibliographical note

Publisher Copyright:
© 2021, American Statistical Association. All rights reserved.

Funding

DFW, AM, and SB were supported by the US National Science Foundation grant IOS1257718. SB was further supported by NSERC Grant 493024-2016, and JW was partly supported by the Research Council of Norway through its Centers of Excellence funding scheme, project number 223257. We would like to thank Duncan Brown and (the then) CCW for access to the pied flycatcher field site at Abergwyngregyn NNR, as well as Gabrielle Archard, Christian Both, Matt Davey, Kim Denny, Ioan Fazey, Camilla Hinde, Adam Morrey, Roberta Spears, Jane Stott, Richard Yarnell and Yoram and Shlomith Yom-Tov for assistance in the field.

FundersFunder number
National Science Foundation Arctic Social Science ProgramIOS1257718
Natural Sciences and Engineering Research Council of Canada493024-2016
Norges Forskningsråd223257

    Keywords

    • Bayesian inference
    • Diversity patterns
    • Generalized linear models
    • Hierarchical models
    • Markov chain Monte Carlo
    • Structured residual variance
    • Variance patterns

    ASJC Scopus subject areas

    • Software
    • Statistics and Probability
    • Statistics, Probability and Uncertainty

    Fingerprint

    Dive into the research topics of 'dalmatian: A Package for Fitting Double Hierarchical Linear Models in R via JAGS and nimble'. Together they form a unique fingerprint.

    Cite this