Estimate Rogers-Castro Migration Age Schedules with Bayesian Models
Overview
A collection of functions to estimate Rogers-Castro migration age schedules using 'Stan'. This model which describes the fundamental relationship between migration and age in the form of a flexible multi-exponential migration model was most notably proposed in Rogers and Castro (1978) doi:10.1068/a100475.
Notable changes
- Poisson model now uses poisson_log in stan code for numerical stability
- Updated deprecated syntax for future rstan compatibility
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from: ‘RcppParallel’ ‘rstantools’ ‘shinythemes’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-07-29
- ERROR10 OK, 2 NOTE, 1 ERROR2026-07-27
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- NOTE9 OK, 5 NOTE2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-18
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 5includes a package overview page
- Examples that run
- 75%3 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 40% with a bibliography file
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.3.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2.02022-01-17 · diff ↗
- 0.1.02021-10-21
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-10-21
- Total releases
- 3 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 298 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("rcbayes")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.4054/demres.2023.49.42.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.