Package: NeStage 0.8.1.9000

Raymond L. Tremblay

NeStage: Effective Population Size from Stage-Structured Populations

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.

Authors:Raymond L. Tremblay [aut, cre]

NeStage_0.8.1.9000.tar.gz
NeStage_0.8.1.9000.zip(r-4.7-any)NeStage_0.8.1.9000.zip(r-4.6-any)NeStage_0.8.1.9000.zip(r-4.5-any)
NeStage_0.8.1.9000.tgz(r-4.6-any)NeStage_0.8.1.9000.tgz(r-4.5-any)
NeStage_0.8.1.9000.tar.gz(r-4.7-any)NeStage_0.8.1.9000.tar.gz(r-4.6-any)
NeStage_0.8.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
NeStage/json (API)

# Install 'NeStage' in R:
install.packages('NeStage', repos = c('https://raymondltremblay.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/raymondltremblay/nestage/issues

On CRAN:

Conda:

conservation-biologydemographic-matrixeffective-population-sizeevolutionfritillariagenetic-driftpopulation-ecologypopulation-geneticsstage-structured

5.48 score 38 scripts 312 downloads 9 exports 17 dependencies

Last updated from:5cb6dfc156. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK125
source / vignettesOK234
linux-releaseOK112
macos-releaseOK123
macos-oldrelOK123
windows-develOK79
windows-releaseOK69
windows-oldrelOK62
wasm-releaseOK104

Exports:Ne_clonal_Y2000Ne_clonal_Y2000_bothNe_mixed_Y2000Ne_mixed_Y2000_bothNe_sensitivity_dNe_sensitivity_LNe_sensitivity_VcNe_sensitivity_VkNe_sexual_Y2000

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Replicating Yonezawa et al. (2000) with NeStage
Introduction: What the Yonezawa (2000) model does | Purpose and scope | What the model does | Biological system | Notation and key formulas | Variables (for $s$ stages) | The one-year variance of allele-frequency change (Eq. 5) | General generation-time effective size $N_e$ (Eq. 6) | Clonal-dominant Poisson special case (Eq. 10) | Annual effective size $N_y$ (Eq. 11) | Glossary of R objects | Step 1 — Load packages and define pedagogical helpers | Step 2 — Enter Table 2 data (Miz and Nan populations) | Step 3 — Compute $\lambda$, stable stage distribution, and generation time $L$ | Step 4 — Manual computation of Table 4 quantities | Observed stage fractions | Expected (equilibrium) stage fractions | Step 5 — Replication check: computed vs. paper Table 4 | Step 6 — NeStage package: Ne_clonal_Y2000() | Inputs explained | Running Ne_clonal_Y2000() for both populations | Print output for Miz (observed D) | Comparing Ne_clonal_Y2000() output to paper Table 4 | Step 7 — General model: Ne_mixed_Y2000() | Internal consistency: general model must match clonal shortcut | Sensitivity to the clonal fraction $d_i$ | Final summary: full replication of Table 4 | Session information

Last update: 2026-10-07
Started: 2026-03-05

NeStage: Quick Start Guide
Overview | What data do you need? | T_mat — Survival/transition matrix | F_vec — Fecundity vector | D — Stage frequency distribution | L — Generation time (optional but recommended) | Quick data checklist | Ne_clonal_Y2000() — Purely clonal populations | Key outputs | Ne_sexual_Y2000() — Purely sexual populations | Optional: adjust reproductive variance Vk_over_k | Ne_mixed_Y2000() — Mixed sexual + clonal populations | The d vector — most common source of confusion | Which function should I use? | Interpreting the results | Next steps | References

Last update: 2026-03-12
Started: 2026-03-06

Sensitivity Analysis for Conservation Decision-Making
Introduction | From a ratio to a decision | The four sensitivity functions | Elasticity: a standardised sensitivity measure | Study populations | Sensitivity to sexual reproductive variance: Ne_sensitivity_Vk() | What is Vk/k̄ and why does it matter? | Running Ne_sensitivity_Vk() for the reproductive stage | Interpretation | Sensitivity to generation time: Ne_sensitivity_L() | Why L matters so much | Sweeping L across a biologically plausible range | Key insight: Ne/N is hyperbolic in L | Sensitivity to clonal fraction: Ne_sensitivity_d() | When does clonal fraction matter? | Cross-parameter comparison: which lever matters most? | Conservation prioritisation framework | Priority 1 — Reduce uncertainty in L | Priority 2 — Equalise reproductive output in high-fecundity stages | Priority 3 — Augment census size in the lowest-Ne/N populations | Session information | References

Last update: 2026-03-12
Started: 2026-03-06

NeStage Functions: A User Guide
Introduction | What is effective population size and why does it matter? | Why stage-structured models? | The three NeStage functions | MatU and MatF: the standard input format | The study system: Lepanthes orchids in Puerto Rico | The six-stage life cycle of L. rupestris | Setting up the matrices | L. rupestris population 1 — monthly matrices | Stage frequency vector D | Monthly vs annual matrices: does the time step matter? | Converting monthly to annual matrices | Comparing Ne/N from monthly vs annual matrices | Interpreting the difference | Running Ne_sexual_Y2000: a complete worked example | All inputs explained | Full output for L. rupestris population 1 | Reading the output | All populations of all three species | Entering all matrices | Computing Ne/N for all 17 populations | Comparing to Orive (1993) estimates | Summary and conservation implications | Key conservation messages | Brief overview of the other two functions | Ne_clonal_Y2000 | Ne_mixed_Y2000 | Session information | References

Last update: 2026-03-07
Started: 2026-03-06