Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

migration

Calculate net migration from mortality and fertility data


Description

Function to compute the net number of migrants in each year and for each age, based on the total population numbers, deaths and births in each year.

Usage

netmigration(mort, fert, startyearpop=mort, mfratio = 1.05)

Arguments

mort

Demogdata object of type "mortality"

fert

Demogdata object of type "fertility"

startyearpop

Demogdata object containing population data for first year of calculation.

mfratio

Male-female ratio to be used in simulating births.

Value

Object of class “demogdata” with the following components:

year

Vector of years

age

Vector of ages

rate

List containing matrices of net migration numbers (not "rates") with with one age group per row and one column per year. Names of matrices are the same as for mort$rate.

pop

List containing matrices of populations in same form as rate and containing population numbers.

type

Type of object. In this case, “migration”.

label

label from mort$label

Author(s)

Rob J Hyndman

See Also

Examples

## Not run: 
require(addb)
aus.mig <- netmigration(australia,aus.fertility)
plot(aus.mig)
## End(Not run)

demography

Forecasting Mortality, Fertility, Migration and Population Data

v1.22
GPL (>= 2)
Authors
Rob J Hyndman with contributions from Heather Booth, Leonie Tickle and John Maindonald.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.