Single-Species, Multi-Species, and Integrated Spatial Occupancy Models
Overview
Fits single-species, multi-species, and integrated non-spatial and spatial occupancy models using Markov Chain Monte Carlo (MCMC). Models are fit using Polya-Gamma data augmentation detailed in Polson, Scott, and Windle (2013) doi:10.1080/01621459.2013.829001. Spatial models are fit using either Gaussian processes or Nearest Neighbor Gaussian Processes (NNGP) for large spatial datasets. Details on NNGP models are given in Datta, Banerjee, Finley, and Gelfand (2016) doi:10.1080/01621459.2015.1044091 and Finley, Datta, and Banerjee (2022) doi:10.18637/jss.v103.i05. Provides functionality for data integration of multiple single-species occupancy data sets using a joint likelihood framework. Details on data integration are given in Miller, Pacifici, Sanderlin, and Reich (2019) doi:10.1111/2041-210X.13110. Details on single-species and multi-species models are found in MacKenzie, Nichols, Lachman, Droege, Royle, and Langtimm (2002) doi:10.1890/0012-9658(2002)083[2248:ESORWD]2.0.CO;2 and Dorazio and Royle doi:10.1198/016214505000000015, respectively.
- Created a new function
simFPOcc()that simulates data for the false-positive occupancy model of Chambert et al. (2018). - Fixed multiple bugs in prediction code that led to wrong predictions with specific combinations of non-spatial random effects (#58).
- Fixed bug in prediction for NNGP = FALSE and an indexing problem with
spMsPGOccthat could lead to scrambled output (#58). - Fixed a variety of small errors in prediction functions that led to function crashes (#58).
- Fixed minor defects in multiple simulation functions (#59).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
Show 2 earlier changesHide 2 earlier changes
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 8
- github.com/biodiverse/spoccupancy · last recorded on 2026-08-16
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/ecoverser/spoccupancy on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Code & Tests
Datasets
People & History
- 0.8.2Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.8.12024-12-14 · diff ↗
- 0.8.0
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-04-19
- 0.7.62024-04-19 · diff ↗
- archivedRemoved from CRAN2024-04-12issues were not corrected in time
- 0.7.3
- 0.7.22023-11-01 · diff ↗
- 0.7.12023-09-01 · diff ↗
- 0.7.0
- RR 4.3.0 released · 2023-04-21
- 0.6.12023-03-11 · diff ↗
- 0.6.0
Show 13 earlier eventsHide 13 earlier events
- 0.5.22022-12-21 · diff ↗
- 0.5.12022-12-08 · diff ↗
- 0.5.02022-11-16 · diff ↗ ·
added 7 exports
simBinom, svcPGBinom, svcPGOcc, simTBinom, svcTPGBinom, svcTPGOcc, getSVCSamples - 0.4.0
- 0.3.22022-05-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.3.12022-04-13 · diff ↗
- 0.3.0
- 0.2.12022-01-07 · diff ↗
- 0.2.02021-12-19 · diff ↗
- 0.1.32021-11-25 · diff ↗
- 0.1.22021-11-11
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-11-11
- Total releases
- 21 / 5 yrs
- License
- GPL (>= 3) OSI
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("spOccupancy")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.