Package: VirtualPop 1.0.3

VirtualPop: Simulation of Populations by Sampling Waiting-Time Distributions

Generates lifespans and fertility histories in continuous time using individual-level state transition (multi-state) models and data from the Human Mortality Database and the Human Fertility Database. To facilitate virtual population analysis, data on virtual individuals are stored in a data structure commonly used in sample surveys. Life histories are generated for multiple generations. The genealogies that result facilitate the study of family ties.

Authors:Frans Willekens [aut, cre], Tim Riffe [ctb]

VirtualPop_1.0.3.tar.gz
VirtualPop_1.0.3.zip(r-4.7)VirtualPop_1.0.3.zip(r-4.6)VirtualPop_1.0.3.zip(r-4.5)
VirtualPop_1.0.3.tgz(r-4.6-any)VirtualPop_1.0.3.tgz(r-4.5-any)
VirtualPop_1.0.3.tar.gz(r-4.7-any)VirtualPop_1.0.3.tar.gz(r-4.6-any)
VirtualPop_1.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
VirtualPop/json (API)

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

Bug tracker:https://github.com/willekens/virtualpop/issues

Datasets:
  • dataLH - DataLH data
  • dpopus - Dpopus data Population of the United States in 2019 reported in the HMD
  • rates - Rates data

On CRAN:

Conda:

demographylife-historiesmultistate-modelssimulation

5.34 score 11 stars 3 scripts 671 downloads 10 exports 51 dependencies

Last updated from:8ab00d1f8f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK145
source / vignettesOK210
linux-release-x86_64OK138
macos-release-arm64OK198
macos-oldrel-arm64OK176
windows-develOK102
windows-releaseOK92
windows-oldrelOK82
wasm-releaseOK118

Exports:ChildrenGetDataGetGenerationsGetRatesH_pwLifespanPartnershippw_rootr.pw_expSim_bio

Dependencies:askpassbitbit64clicliprcpp11crayoncurldplyrexpmgenericsglueHMDHFDplushmshttrjanitorjsonlitelatticelifecyclelubridatemagrittrMatrixmimemsmmvtnormopensslpillarpkgconfigprettyunitsprogresspurrrR6readrrlangrvestselectrsnakecasestringistringrsurvivalsystibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithrxml2

Validation of the simulation
Introduction | Validity | References

Last update: 2023-02-11
Started: 2022-06-09

Sampling Piecewise-Exponential Waiting Time Distributions
Introduction | Theoretical background: simulating waiting times | Overview | The piecewise-exponential distribution | Application: generating individual ages at death from period death rates | References

Last update: 2022-07-07
Started: 2022-06-09

Simulation of life histories
Introduction | Theoretical background: simulating life histories | Illustration: simulation of a single life history | Application: fertility histories of women in the United States | References

Last update: 2022-07-07
Started: 2022-06-09

VirtualPop: Simulation of individual fertility careers from age-specific fertility and mortality rates
Introduction | Install the package | Download the data | Mortality and fertility rates | Generate a virtual population | Replace age at death by age at censoring | Export the virtual population from R to STATA and SPSS | Convert decimal dates into calendar dates | Additional application: fertility careers in Japan | References

Last update: 2022-07-07
Started: 2022-06-09