Date: 2021-01-30
The rcbayes package is
an R package that contains functions to calculate and estimate
Rogers-Castro migration age schedules in a Bayesian framework.
rcbayes version 0.3.0 is now available on
CRAN.
rcbayes is a spin-off package that is called on by
DemoTools, but can also be
used as a stand-alone package. DemoTools is an R package that contains
simple functions often used in demographic analysis.
This project, including both the rcbayes and DemoTools packages, is
commissioned by the UN Population
Division and financed by the
Bill and Melinda Gates Foundation as
part of the Making Family Planning
Count
project. rcbayes was created in collaboration with Monica
Alexander and Tim
Riffe. This work is licensed under the
MIT License.
To get started with rcbayes we recommend taking a look at the vignette
Rogers Castro Migration Models with
rcbayes.
You can load the rcbayes package as follows:
# install.packages("rcbayes")
library(rcbayes)Note that this package requires rstan. If you have issues installing
rstan additional information is available
here, as well as from a
general Google search.
For additional tips in getting models to converge, we recommend taking a look at the vignette Model Convergence With mig_estimate_rc.
To cite rcbayes in publications, please use:
Alexander M, Yeung J, and Riffe T. (2021) rcbayes: An R package of tools for Bayesian Rogers-Castro Migration Age Schedules URL: https://github.com/jessieyeung/rcbayes/.
@Misc{rcbayes,
Title = {rcbayes: {A}n {R} package for Bayesian Rogers-Castro Migration Age Schedules},
Author = {Alexander, M and Yeung, J and Riffe, T},
Year = {2021},
note = {URL:~\url{https://github.com/jessieyeung/rcbayes/}}
}