BayesFR: Fitting Functional Responses in 1- and 2-Prey Systems

Easy application of Bayesian inference for functional responses via 'brms'. This package allows to fit various FR models for single- and multi-prey experiments by providing nonlinear prediction functions for 'brms'. It uses dynamical prediction models to correct for prey depletion. The 'brms' framework facilitates statistical modeling and enables users to conveniently incorporate covariates such as temperature gradients, experimental treatment variables, or random effects that account for grouping in experimental units. Default 'brms' functions make it easy to perform model checking, model comparison and hypothesis testing. Potential statistical issues with data from feeding trials, such as overdispersion, can be resolved by effortlessly switching between likelihood functions. This package, together with its tutorials, should provide students and researchers with a comprehensive and integrated statistical framework for easily testing their hypotheses on trophic interactions. References: Rosenbaum and Rall (2018) <doi:10.1111/2041-210X.13039>; Rosenbaum et al. (2024) <doi:10.1111/2041-210X.14372>.

Version: 1.0.1
Depends: R (≥ 3.5)
Imports: brms, ggplot2, tidyr
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-06-23
DOI: 10.32614/CRAN.package.BayesFR (may not be active yet)
Author: Benjamin Rosenbaum ORCID iD [aut, cre]
Maintainer: Benjamin Rosenbaum <benjamin.rosenbaum at idiv.de>
BugReports: https://github.com/benjamin-rosenbaum/BayesFR/issues
License: GPL (≥ 3)
URL: https://github.com/benjamin-rosenbaum/BayesFR
NeedsCompilation: no
Citation: BayesFR citation info
Materials: README
CRAN checks: BayesFR results

Documentation:

Reference manual: BayesFR.html , BayesFR.pdf
Vignettes: Getting started with BayesFR (source, R code)

Downloads:

Package source: BayesFR_1.0.1.tar.gz
Windows binaries: r-devel: BayesFR_1.0.1.zip, r-release: not available, r-oldrel: BayesFR_1.0.1.zip
macOS binaries: r-release (arm64): BayesFR_1.0.1.tgz, r-oldrel (arm64): BayesFR_1.0.1.tgz, r-release (x86_64): BayesFR_1.0.1.tgz, r-oldrel (x86_64): BayesFR_1.0.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=BayesFR to link to this page.