Effective Population Size from Stage-Structured Populations
Overview
Computes effective population size (Ne) and the Ne/N ratio for stage-structured populations using the matrix population model framework of Yonezawa (2000) doi:10.1111/j.0014-3820.2000.tb01244.x. Functions are provided for sexually reproducing, clonally reproducing, and mixed (sexual + clonal) populations. Includes sensitivity and elasticity analyses for Ne/N with respect to vital rates.
Bug fix: internally computed generation time L
- When
L = NULL,Ne_clonal_Y2000(),Ne_sexual_Y2000(),Ne_mixed_Y2000()andNe_sensitivity_L()(reference line) computed L incorrectly. The termsum(F * T^x)already equals l_x * m_x, but it was multiplied by l_x a second time, and the cohort was started from the stable stage distribution instead of from newborns. The returned L was about one third of the correct value (4.728 instead of 13.399 for *Fritillaria camtschatcensis* Miz), so Ne/N was overestimated and minimum census size underestimated. - L is now the mean age of reproduction of a newborn cohort entering
recruit_row, and reproduces Table 4 of Yonezawa et al. (2000) exactly (13.399 Miz, 8.353 Nan). Results obtained by supplyingLdirectly are unchanged.
Show all changes in 0.8.1Hide the rest of the changes in 0.8.1
Ne_sensitivity_L()now calls the same internal function rather than a separate copy of the calculation.- New tests in
tests/testthat/test-generation-time.R; the Yonezawa vignette replication check now compares the computed L with Table 4.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK5 OK2026-03-18
Documentation
- Help pages
- 9
- Examples that run
- 100%8 run in a plain check
- Exported functions with examples
- 89%
- Documented parameters
- 97%
- Return-value docs
- 100%
- Help pages citing references
- 33%
Downloads
Repository
Releases over time
Commits over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/raymondltremblay/nestage on 2026-10-22.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.8.1Latest
- RR 4.6.0 released · 2026-04-24
- 0.8.02026-03-17
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-17
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 362 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("NeStage")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.