Skip to contents

occumb is an R package that provides functionalities for the application of multispecies site occupancy modeling for environmental DNA (eDNA) metabarcoding.

This package allows users to fit the model with a fully Bayesian approach using conventional formulas in R. This enables the analysis of the detectability of species at different stages of the workflow of eDNA metabarcoding and the inference of species site occupancy while accounting for false negatives. It also provides functionality for model-based inference to assist in the optimization of the study design.

See the package vignette to learn how to use the package and the original paper for details of the model and inference.


You need first install JAGS following the instructions on the JAGS homepage.

You can then install the latest stable version of the package from CRAN:

or the GitHub repository:

remotes::install_github("fukayak/occumb", ref = "main")

Contact information

Questions and bug reports can be emailed to Keiichi Fukaya ().


The development of occumb would not have been possible without, among others, Martyn Plummer’s JAGS and Ken Kellner’s jagsUI R package, because the main functionality of occumb for model fitting via Markov chain Monte Carlo (MCMC) relies on these libraries. Taku Kadoya encouraged us to develop this package. Koji Makiyama, Shinya Uryu, and Kentaro Matsuura contributed to package testing. Mito Ikemoto and Kentaro Uehira provided valuable feedback through package trials and documentation reviews. Funding was provided by Japan Society for the Promotion of Science (KAKENHI; Nos. 20K06102 and 23H02240).