The package comes with four vignettes.
- VirtualPop: Simulation of individual fertility careers from age-specific fertility and mortality rates. A tutorial. A good place to start.
- Sampling piecewise-exponential waiting time distributions. The theory underlying the sampling of ages at death and ages at childbirth.
- Simulation of life histories. The theory underlying the generation of life histories using multistate models.
- Validation of the simulation. Results of the simulation are compared with demographic (kinship) indicators computed from census and survey data. The virtual population generated from demographic rates of the United States in 2019 is compared with observations in the Current Population Survey 2018.
In the
- pdf versions of the vignettes
- package manual
- R code used in vignettes
The companion package
To install the package from CRAN, type in the R window:
install.packages ("VirtualPop")
To install the package from GitHub, use:
library(devtools)
devtools::install_github("willekens/VirtualPop")