microsimulate: microsimulate

Description Usage Arguments Value Examples

Description

This function projects an (synthetic) population from aggregate census data. Members of the population are categorised by age, sex, ethnicity and geographical location. - births are a single child only (assumed that twins etc are accounted for in the fertility rate) - newborns are equally likely to be male or female (this may be incorrect esp. for certain ethnicities) - ethnicity of newborn is the same as mother (in the absence of other information) - the death rate for age zero is the average of the rate of stillbirths and deaths under one year - births supersede deaths: thus a person who gives birth and dies in a single year will have a surviving child

Usage

1
microsimulate(synpop, years)

Arguments

synpop

a dataframe containing the base population to be projected

years

a number of years to run the simulation

Value

a data.table containing the projected population

Examples

1
2
3
4
5
## Not run: 
synpop = microsynthesise()
projpop = microsimulate(synpop, 10)

## End(Not run)

virgesmith/demographyMicrosim documentation built on May 29, 2019, 12:42 p.m.