Learn R Programming

popbayes

The goal of the R package popbayes is to infer trends of one or several populations over time from series of counts. It does so by accounting for count precision (provided or inferred based on expert knowledge, e.g. guesstimates), smoothing the population rate of increase over time, and accounting for the maximum demographic potential of species. Inference is carried out in a Bayesian framework. This work is part of the FRB-CESAB working group AfroBioDrivers.

Installation

Before using this package, users need to install the freeware JAGS.

You can install the stable version of the package from the CRAN with:

install.packages("popbayes")

Alternatively you can install the development version from GitHub with:

# install.packages("remotes")

remotes::install_github("frbcesab/popbayes", build_vignettes = TRUE)

Overview

Get started

Please read the Get started vignette.

Citation

Please cite this package as:

Casajus N. & Pradel R. (2023) popbayes: Bayesian model to estimate population trends from counts series. R package version 1.2.0. URL: https://frbcesab.github.io/popbayes/.

You can also run:

citation("popbayes")

## A BibTeX entry for LaTeX users is:
## 
## @Manual{,
##   title  = {{popbayes}: {B}ayesian model to estimate population trends from counts series,
##   author = {{Casajus N.}, and {Pradel R.}},
##   year   = {2023},
##   note   = {R package version 1.2.0},
##   url    = {https://frbcesab.github.io/popbayes/},
## }

Copy Link

Version

Install

install.packages('popbayes')

Monthly Downloads

201

Version

1.2.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Nicolas Casajus

Last Published

June 15th, 2023

Functions in popbayes (1.2.0)

read_bugs

Import a list of BUGS outputs previously exported
species_info

Species information dataset
series_to_df

Extract original/converted count series data from a list
list_series

Retrieve the count series names
plot_series

Plot original vs converted counts
read_series

Import a list of count series previously exported
w_to_rmax

Compute rmax from adult female body mass
diagnostic

Check if a BUGS model has converged
garamba

African mammals survey in the Garamba National Park
filter_series

Extract the count series corresponding to a location and/or a species
format_data

Format count series
bugs_to_df

Extract estimated parameters from a list of BUGS outputs
fit_trend

Fit a Bayesian model to estimate population size trend
plot_trend

Plot estimated population trend
popbayes-package

popbayes: Bayesian Model to Estimate Population Trends from Counts Series