Package: raretrans 1.0.5

Raymond Tremblay
raretrans: Bayesian Priors for Matrix Population Models
Provides functions to correct biased transition and fertility estimates in population projection matrices caused by small sample sizes. Small or short-term studies frequently produce structural zeros (biologically possible transitions never observed) and structural ones (transitions estimated at 100% survival, stasis, or mortality that are biologically implausible). Both distort matrix structure and bias estimates of population growth. Implements a multinomial-Dirichlet Bayesian prior for transition probabilities and a Gamma-Poisson prior for reproduction, allowing analysts to incorporate prior biological knowledge and regularise estimates from rare or unobserved events. Includes functions to compute marginal posterior credible intervals for all transition probabilities (transition_CrI()), visualise those intervals as point-range plots (plot_transition_CrI()), and display the full posterior beta density for each matrix entry (plot_transition_density()). Methods are described in Tremblay et al. (2021) <doi:10.1016/j.ecolmodel.2021.109526>.
Authors:
raretrans_1.0.5.tar.gz
raretrans_1.0.5.zip(r-4.7)raretrans_1.0.5.zip(r-4.6)raretrans_1.0.5.zip(r-4.5)
raretrans_1.0.5.tgz(r-4.6-any)raretrans_1.0.5.tgz(r-4.5-any)
raretrans_1.0.5.tar.gz(r-4.7-any)raretrans_1.0.5.tar.gz(r-4.6-any)
raretrans_1.0.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
raretrans/json (API)
NEWS
| # Install 'raretrans' in R: |
| install.packages('raretrans', repos = c('https://atiretoo.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/atiretoo/raretrans/issues
Pkgdown/docs site:https://atiretoo.github.io
- L_elto - Transition and recruitment data for _Lepanthes eltoroensis_
Last updated from:b1f2e5c426. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 144 | ||
| source / vignettes | OK | 306 | ||
| linux-release-x86_64 | OK | 132 | ||
| macos-release-arm64 | OK | 79 | ||
| macos-oldrel-arm64 | OK | 106 | ||
| windows-devel | OK | 91 | ||
| windows-release | OK | 88 | ||
| windows-oldrel | OK | 83 | ||
| wasm-release | OK | 114 |
Exports:fill_fertilityfill_transitionsget_state_vectorplot_transition_CrIplot_transition_densityrdirichletrun_appsim_transitionstransition_CrI
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
01 Quick start: credible intervals for transition probabilities
Rendered fromquick_start.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-03-25
Started: 2026-03-25
02 Introduction to raretrans
Rendered fromintroduction.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-03-27
Started: 2026-03-25
03 Working with a single population and transition
Rendered fromonepopperiod.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-04-11
Started: 2018-06-08
04 Credible intervals for transition probabilities: Cypripedium calceolus
Rendered fromcredible_intervals.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-03-25
Started: 2026-03-25
05 Effect of prior information on transition probabilities and fertility
Rendered fromtransition_priors.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-05-15
Started: 2017-07-16
06 Matrices of animal populations
Rendered fromanimal_matrices.Rmdusingknitr::rmarkdownon May 15 2026.Last update: 2026-04-03
Started: 2020-07-24
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| raretrans: Bayesian Priors for Matrix Population Models | raretrans-package raretrans |
| Combine prior and data for fertility matrix | fill_fertility |
| Combine prior and data for transition matrix | fill_transitions |
| Helper functions for generating different priors | get_state_vector |
| Transition and recruitment data for _Lepanthes eltoroensis_ | L_elto |
| Plot beta credible intervals for transition matrix entries | plot_transition_CrI |
| Plot posterior beta density curves for all transition matrix entries | plot_transition_density |
| Dirichlet distributed random numbers | rdirichlet |
| Run the interactive Shiny application for Bayesian transition priors | run_app |
| Simulate population projection matrices | sim_transitions |
| Calculate beta credible intervals for all transition matrix entries | transition_CrI |