Bayesian Models for Data from Unmarked Animals using 'Stan'
Overview
Fit Bayesian hierarchical models of animal abundance and occurrence via the 'rstan' package, the R interface to the 'Stan' C++ library. Supported models include single-season occupancy, dynamic occupancy, and N-mixture abundance models. Covariates on model parameters are specified using a formula-based interface similar to package 'unmarked', while also allowing for estimation of random slope and intercept terms. References: Carpenter et al. (2017) doi:10.18637/jss.v076.i01; Fiske and Chandler (2011) doi:10.18637/jss.v043.i10.
- Updated compatibility with upcoming changes to
loo_compare()output structure in theloopackage (> 2.9.0), which now returns a data frame instead of a matrix and includes additional diagnostic columns.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: ubms/tests/testthat/test_submodel.R (.Dim: 12, .Dimnames: 12) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'.
- NOTE8 OK, 5 NOTE2026-07-29
- ERROR8 OK, 4 NOTE, 1 ERROR2026-07-27
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 5 earlier changesHide 5 earlier changes
- OK12 OK2026-04-25
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-23
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 43includes a package overview page
- Examples that run
- 22%2 run in a plain check · 7 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 64%
- Documented parameters
- 100%
- Return-value docs
- 93%
- Help pages citing references
- 26%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 11
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/ecoverser/ubms on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing ubms adds 56 packages (27 with compiled code, 48 MB of source tarballs). Heaviest: BH 14 MB, ggplot2 6.0 MB, loo 2.7 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.9Latest
- 1.2.82025-09-29 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.2.72024-10-01 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.2.62023-09-11 · diff ↗
- 1.2.52023-08-21 · diff ↗
- 1.2.42023-05-25 · diff ↗
- 1.2.32023-05-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.2.2
- RR 4.2.0 released · 2022-04-22
- 1.1.02021-11-30 · diff ↗ ·
added 8 exports
RSR, cauchy, gamma, logistic, normal, plot_spatial, student_t, uniform - RR 4.1.0 released · 2021-05-18
- 1.0.22021-02-02 · diff ↗
Show 2 earlier eventsHide 2 earlier events
- 1.0.12021-01-19
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-01-19
- Total releases
- 11 / 5 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("ubms")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/2041-210x.13777.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.