Skip to content

singleRcapture

1.1.0Package record

Single-Source Capture-Recapture Models

0packages depend
4.7Kdownloads / year
54.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.1.0
  • 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 public simulate() methods.
  • Updated README and package documentation to describe the new oichao() model.
  • ratioReg(): fixed subset so that bare expressions like subset = grp == "a" evaluate inside data as documented.
Show all changes in 1.1.0Hide the rest of the changes in 1.1.0
  • ratioReg(): fixed bootstrap with model = "M0" or model = "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 for ratioReg() (validation paths, maxCount, subset, alternative estimators, extractAIC/nobs, custom ratioFormula, fixed-model bootstrap).
  • Split family tests into dedicated test_fam_* files and added focused family files for chao() and oichao() to make CI failures identify the affected model directly.
  • Cyprian Jurkowski contributed the first implementations of oichao() and ratioReg().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 11.2 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.0
READMEYes · 1,010 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.1.0Citation fileYes · cites a publication
Cites a JSS article
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

4.7K
CRAN downloads in the past year
Rank #6,786 · ~13/day · ~394/mo
Daily download trend is not available in this view yet.
51930 days
1.3K90 days
4.7K1 year
Compare downloads with other packages →
Also on117 r2u2 autocran35 c2d4u

Repository

10Stars
1Forks
16Open issues
0Open PRs
6Releases
317Commits
5Commit identities
317 commits · Last activity 2026-05-13
Responsiveness
How these are sampled
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

2025-02-05 · 102026-07-07 · 10
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-05-21 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-04-03
    Named in .Rbuildignore: .claude
    Commits: at least 4 crediting it in the message
Models named in its commits
  • Claude Opus 4.63 commits · Apr to May 2026
  • Claude Opus 4.71 commit · May 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.2.2 (2025)
Author, Contributor
Contributor · added in 1.1.0

Previously maintained by Piotr Chlebicki (0.2.0 to 0.2.1.4).

Releases (10)

Pick two releases to compare their code metrics.

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for singleRcapture version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy