<scp>STbayes</scp> : An R package for creating, fitting and understanding Bayesian models of social transmission

Abstract A critical consequence of joining social groups is the possibility of social transmission of information related to novel behaviours or resources. Network‐based diffusion analysis (NBDA) has emerged as a leading frequentist framework for inferring and quantifying social transmission, particularly in non‐human animal populations. NBDA has been extended several times to account for multiple diffusions, multiple networks, individual‐level variables and complex transmission functions. Bayesian versions of NBDA have been proposed before, although these implementations have seen limited usage and have not kept pace with the evolving ecosystem of Bayesian methods. There is not yet a user‐friendly package to implement a Bayesian NBDA. Here, we present a unified framework for performing Bayesian analysis of social transmission using NBDA‐type models, implemented in the widely used Stan programming language. We provide a user‐friendly R package ‘STbayes’ (ST: social transmission) for other researchers to easily use this framework. STbayes accepts user‐formatted data, but can also import data directly from the existing NBDA R package. Based on the data users provide, STbayes automatically generates multi‐network, multi‐diffusion models that allow for covariates that may influence transmission and varying (random) effects. Using simulated data, we demonstrate that this model can accurately differentiate the relative contribution of individual and social learning in the spread of information through networked populations. We illustrate how incorporating upstream uncertainty about the relationships between individuals can improve model fit. Our framework can be used to infer complex transmission rules, and we describe a numerically stable parametrization of frequency‐dependent transmission. Finally, we introduce support for dynamic transmission weights and a ‘high‐resolution’ data mode, which allows users to make use of fine‐scale data collected by contemporary automated tracking methods. These extensions increase the set of contexts that this type of model may be used for.

Institutions

Publication Details

Journal
Methods in Ecology and Evolution
Published
2025-12-18
DOI
https://doi.org/10.1111/2041-210x.70228
Primary Topic
Complex Network Analysis Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

STbayes : An R package for creating, fitting and understanding Bayesian models of social transmission

Methods in Ecology and Evolution
Complex Network Analysis Techniques
article

STbayes : An R package for creating, fitting and understanding Bayesian models of social transmission

article en

Abstract

Abstract A critical consequence of joining social groups is the possibility of social transmission of information related to novel behaviours or resources. Network‐based diffusion analysis (NBDA) has emerged as a leading frequentist framework for inferring and quantifying social transmission, particularly in non‐human animal populations. NBDA has been extended several times to account for multiple diffusions, multiple networks, individual‐level variables and complex transmission functions. Bayesian versions of NBDA have been proposed before, although these implementations have seen limited usage and have not kept pace with the evolving ecosystem of Bayesian methods. There is not yet a user‐friendly package to implement a Bayesian NBDA. Here, we present a unified framework for performing Bayesian analysis of social transmission using NBDA‐type models, implemented in the widely used Stan programming language. We provide a user‐friendly R package ‘STbayes’ (ST: social transmission) for other researchers to easily use this framework. STbayes accepts user‐formatted data, but can also import data directly from the existing NBDA R package. Based on the data users provide, STbayes automatically generates multi‐network, multi‐diffusion models that allow for covariates that may influence transmission and varying (random) effects. Using simulated data, we demonstrate that this model can accurately differentiate the relative contribution of individual and social learning in the spread of information through networked populations. We illustrate how incorporating upstream uncertainty about the relationships between individuals can improve model fit. Our framework can be used to infer complex transmission rules, and we describe a numerically stable parametrization of frequency‐dependent transmission. Finally, we introduce support for dynamic transmission weights and a ‘high‐resolution’ data mode, which allows users to make use of fine‐scale data collected by contemporary automated tracking methods. These extensions increase the set of contexts that this type of model may be used for.

Methods in Ecology and EvolutionVol. 17(3)
University of Konstanz (DE), University of Zurich (CH), Max Planck Institute of Animal Behavior (DE), University of Cumbria (GB)
Deutsche Forschungsgemeinschaft, Staatssekretariat für Bildung, Forschung und Innovation
Openalex Percentile: Top 34%
Complex Network Analysis Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.