Learn R Programming

VirtualPop (version 2.0.2)

Simulation of Populations by Sampling Waiting-Time Distributions

Description

Constructs a virtual population from fertility and mortality rates for any country, calendar year and birth cohort in the Human Mortality Database and the Human Fertility Database . Fertility histories are simulated for every individual and their offspring, producing a multi-generation virtual population.

Copy Link

Version

Install

install.packages('VirtualPop')

Monthly Downloads

571

Version

2.0.2

License

GPL-2

Maintainer

Frans Willekens

Last Published

March 18th, 2024

Functions in VirtualPop (2.0.2)

Sim_bio

Generic Function to Generate Single Life History
pw_root

The Function for which the Root is Sought.
dLH

Individual fertility histories based on period data and in the presence of mortality (USA 2021)
e0

Mean Ages at Death and Probabilities of Surviving to Selected Ages, by Sex
ratesC

Cohort rates
rates

Period rates
r.pw_exp

Draws Waiting Times from a Piecewise-Exponential Distribution.
GetRates

Retrieves Period Mortality and Fertility Rates from HMD and HFD for a Selected Country and Selected Year
BuildViP

Builds a Virtual Population in a Single Step
Children

Generates Individual Fertility Histories
PartnerSearch

Simple Partner Search Simulation
GetRatesC

Retrieves Cohort Data from the HMD and HFD and Obtains Cohort Rates
GetGenerations

Builds a Multi-Generation Virtual Population from demographic parameters
H_pw

Computes Cumulative Hazard at Duration t under a Piecewise Exponential Model
Lifespan

Generates Individual Lifespan(s)
GetData

Reads Data from the HMD and HFD into R