bbsBayes2

An R Package for Hierarchical Bayesian Analysis of North American Breeding Bird Survey Data.
https://github.com/bbsbayes/bbsbayes2

Category: Biosphere
Sub Category: Avian Monitoring and Analysis

Keywords from Contributors

bayesian-inference bbs breeding-bird-survey cws hierarchical-bayesian-analysis jags mcmc usgs

Last synced: about 1 hour ago
JSON representation

Repository metadata

An R Package for Hierarchical Bayesian Analysis of North American Breeding Bird Survey Data (second iteration)

README.md

R-CMD-check
Codecov test coverage
R-Universe
Project Status: Active

Critical News:

Error in the non-hierarchical first-difference model

In versions 1.1.0, 1.1.1, and 1.1.2.0, the non-hierarchical variant of the first-difference model included a coding error. Estimates of trends and population trajectories from this model in these versions will be biased.

The error was fixed in version 1.1.2.1.
I am so sorry folks, please reach out if you would like more information or assistance in fixing/recovering from this.

bbsBayes2

bbsBayes2 is a package for performing hierarchical Bayesian analysis of North
American Breeding Bird Survey (BBS) data. 'bbsBayes2' will run a full model
analysis for one or more species that you choose, or you can take more control
and specify how the data should be stratified, prepared for Stan, or modelled.

bbsBayes2 is the successor to
bbsBayes, with a major shift in
functionality. The MCMC backend is now Stan instead of JAGS, the
workflow has been streamlined, the syntax has changed, and there are new
functions. This vignette should help you get started with the package,
and there are three others that should help explain some of the new
features, choices, and more advanced uses:

Installation instructions are below.

See the documentation for an overview of
how to use bbsBayes2.

In addition, there are four vignettes that will help users get familiar with the package and the new functionality.

  • Getting Started vignette

  • Stratification vignette The stratification
    vignette explains the built-in options for spatial stratifications
    as well as the workflow required to apply a custom stratification.

  • Models vignette The models vignette explains the four built-in models that differ in the way the temporal components are structured, and it also covers the built-in options for error distributions and the differences among the model variants (e.g., model_variant = "spatial").

  • Advanced vignette The advanced vignette is helpful for users wanting to take the bbsBayes2 functionality further, including alternate calculations of population trend, customizing the Stan models, adding covariates, and even some experimental functions that allow for k-fold cross-validations to compare among models.

Installation

bbsBayes2 can be installed from the bbsBayes R-Universe:

install.packages("bbsBayes2",
                 repos = c(bbsbayes = 'https://bbsbayes.r-universe.dev',
                           CRAN = 'https://cloud.r-project.org'))

Alternatively you can install directly from our GitHub repository with either
the pak (recommended) or
remotes packages.

With pak:

install.packages("pak")
pak::pkg_install("bbsBayes/bbsBayes2")

With remotes:

install.packages("remotes")
remotes::install_github("bbsBayes/bbsBayes2")

If you want to install the developmental branch (which often includes additional
options and newest updates), you can use the following.
NOTE: bbsBayes2 is supported by a small team of committed researchers with limited capacity. The development branch may not be stable.

pak::pkg_install("bbsBayes/bbsBayes2@dev")

Why bbsBayes2

We hope you'll agree that the BBS is a spectacular dataset. Generations of committed and expert birders have contributed their time and expertise to carefully keeping track of local bird populations. For many BBS observers, it's been a commitment that has lasted 20, 30, or even 40 years! Many federal, state, and provincial government agencies, as well as local and national conservation organizations have supported the coordination and curation of almost 60-years of data.

The BBS was started at the dawn of the modern North American conservation movement, inspired by changes in bird populations noticed by biologists, naturalists, farmers, and other stewards of the natural world. A continental-scale survey of birds, carefully designed to quantify changes in populations through time, in hopes that Rachel Carson's "Silent Spring", would never come to pass.

bbsBayes2 was created: to help researchers make use of these precious data; to better understand the spatial and temporal changes in bird populations; to make agency-derived estimates of population status more transparent; and to inspire improvements, elaborations, and critical feedback on the models provided here. We hope you enjoy the package and we hope you will contribute your ideas and code to this open software initiative.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: about 18 hours ago

Total Commits: 173
Total Committers: 5
Avg Commits per committer: 34.6
Development Distribution Score (DDS): 0.434

Commits in past year: 25
Committers in past year: 2
Avg Commits per committer in past year: 12.5
Development Distribution Score (DDS) in past year: 0.16

Name Email Commits
AdamCSmithCWS a****s@g****m 98
steffilazerte s****i@s****a 50
Smith A****h@e****a 22
L-Daly 1****y 2
Brandon Edwards b****4@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 61
Total pull requests: 60
Average time to close issues: 4 months
Average time to close pull requests: 3 days
Total issue authors: 6
Total pull request authors: 3
Average comments per issue: 1.03
Average comments per pull request: 0.15
Merged pull request: 58
Bot issues: 0
Bot pull requests: 0

Past year issues: 17
Past year pull requests: 2
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 4 days
Past year issue authors: 4
Past year pull request authors: 1
Past year average comments per issue: 1.29
Past year average comments per pull request: 0.0
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/bbsbayes/bbsbayes2

Top Issue Authors

  • AdamCSmithCWS (47)
  • steffilazerte (8)
  • hengxingzou (2)
  • tmeeha (2)
  • billspat (1)
  • BrandonEdwards (1)

Top Pull Request Authors

  • AdamCSmithCWS (56)
  • steffilazerte (3)
  • L-Daly (1)

Top Issue Labels

  • enhancement (1)

Top Pull Request Labels


Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.5 depends
  • HDInterval * imports
  • backports >= 1.4.1 imports
  • dplyr >= 1.1.0 imports
  • geofacet * imports
  • ggplot2 >= 3.4.0 imports
  • ggrepel * imports
  • magrittr * imports
  • mgcv * imports
  • posterior >= 1.2.1 imports
  • purrr >= 0.3.4 imports
  • readr >= 2.1.2 imports
  • rlang >= 0.4.11 imports
  • sbtools * imports
  • sf >= 1.0.8 imports
  • snakecase * imports
  • spdep >= 1.2.7 imports
  • stringr * imports
  • tidyr >= 1.2.0 imports
  • units >= 0.8.0 imports
  • withr >= 2.5.0 imports
  • cmdstanr * suggests
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • rnaturalearth * suggests
  • rnaturalearthhires * suggests
  • roxygen2 * suggests
  • testthat >= 3.0.0 suggests

Score: 4.700480365792417