Single-Source Capture-Recapture Models
Overview
Implementation of single-source capture-recapture methods for population size estimation using zero-truncated, zero-one truncated and zero-truncated one-inflated Poisson, Geometric and Negative Binomial regression as well as Zelterman's, Chao's and ratio-regression estimators. Package includes point and interval estimators for the population size with variances estimated using analytical or bootstrap method. Details can be found in: van der Heijden et all. (2003) doi:10.1191/1471082X03st057oa, Böhning and van der Heijden (2019) doi:10.1214/18-AOAS1232, Böhning et al. (2020) Capture-Recapture Methods for the Social and Medical Sciences or Böhning and Friedl (2021) doi:10.1007/s10260-021-00556-8.
- Fixing CRAN errors.
- Added standalone
ratioReg()support for weighted ratio regression, optional one-inflation model selection, bootstrap intervals, and diagnostic plots. - Added the
oichao()family, a modified Chao estimator based on counts 2 and 3 for improved robustness to one-inflation. - Updated rare-count-family simulation support so
oichao()works correctly through the publicsimulate()methods. - Updated README and package documentation to describe the new
oichao()model. ratioReg(): fixedsubsetso that bare expressions likesubset = grp == "a"evaluate insidedataas documented.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
ratioReg(): fixed bootstrap withmodel = "M0"ormodel = "M1", which previously errored because the primary population estimate was not yet attached when resampling started.- Expanded test coverage for
oichao()(mu, variance, density, deviance residuals, analytic population variance) and forratioReg()(validation paths,maxCount,subset, alternative estimators,extractAIC/nobs, customratioFormula, fixed-model bootstrap). - Split family tests into dedicated
test_fam_*files and added focused family files forchao()andoichao()to make CI failures identify the affected model directly. Cyprian Jurkowskicontributed the first implementations ofoichao()andratioReg().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK14 OK2026-03-30
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-03-28
- OK14 OK2026-03-10
Documentation
- Help pages
- 25
- Examples that run
- 63%5 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 42%
- Documented parameters
- 86%
- Return-value docs
- 100%
- Help pages citing references
- 20%
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 185
- 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 4 families in the upstream repository
Checks run against github.com/ncn-foreigners/singlercapture on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-21 · The repository has a site deploy workflow
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-04-03Named in .Rbuildignore: .claudeCommits: at least 4 crediting it in the message
- Claude Opus 4.63 commits · Apr to May 2026
- Claude Opus 4.71 commit · May 2026
Dependencies
Installing singleRcapture adds 9 packages (4 with compiled code, 8.1 MB of source tarballs). Heaviest: mathjaxr 3.0 MB, Rcpp 1.8 MB, sandwich 1.4 MB.
Code & Tests
Datasets
People & History
Previously maintained by Piotr Chlebicki (0.2.0 to 0.2.1.4).
Pick two releases to compare their code metrics.
- 1.1.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.02026-01-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.2.32025-02-13 · diff ↗
- 0.2.22025-02-04 · diff ↗
- 0.2.1.42025-01-07 · diff ↗
- 0.2.1.32024-11-10 · diff ↗
- 0.2.1.22024-07-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2.1.12023-10-23 · diff ↗
- 0.2.1
- 0.2.02023-06-11
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-06-11
- Total releases
- 10 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 158 KB / 3 files
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("singleRcapture")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v115.i01.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.