This repository is a collection of working examples for implementing the BISON framework with different types of social data. These examples show how to fit simple edge weight models, run basic diagnostic checks, and conduct high level animal social network analysis while propagating uncertainty through the analysis.
The BISoN framework is a Bayesian modelling framework for capturing uncertainty in inferred edge weights from observation data. The key idea behind the framework is to model the sampling process that generates observational data, and use that to quantify uncertainty around estimated edge weights between dyads. Importantly the framework allows for uncertainty around edges to be propagated to higher order metrics such as node centrality, and into subsequent analyses such as regression or non-random edge weight tests.
The preprint can be found at: https://www.biorxiv.org/content/10.1101/2021.12.20.473541v1.
This is a non-exhaustive list of some example BISoN models and auxiliary scripts. The examples are still in development and should be checked carefully before use in real analysis, but should be a good basis for beginning to work with BISoN. Please get in touch if you have any requests or spot any errors.
Note that most of these examples depend on stochastic functions for various purposes, so the outputs might not always match exactly with the text of these notebooks.
- Binary Edge Weight Model (Stan)
- Count Edge Weight Model (Stan)
- Duration Edge Weight Model (Stan)
- Binary Edge Weight Model (INLA)
- Count Edge Weight Model (INLA)
- Group Edge Weight Model (INLA)
- Binary Edge Weight Model with Partial Pooling (Stan)
- Dyadic Regression (Stan)
- Nodal Regression (Stan)
Non-random Edge Weight Tests (Stan)- Dyadic Regression (Metropolis)
- Nodal Regression (Metropolis)
- Binary Directed Edge Weight Model (Stan)
- Prior Predictive Checks
- Posterior Predictive Checks
An R package (bisonR) is currently in development and will be available soon. Follow @jordan_hart_96 on Twitter to keep up to date with the latest developments.