Learn R Programming

demography (version 1.11)

netmigration: 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, mfratio = 1.05)

Arguments

mort
Demogdata object of type "mortality"
fert
Demogdata object of type "fertility"
mfratio
Male-female ratio to be used in simulating births.

Value

  • Object of class demogdata with the following components:
  • yearVector of years
  • ageVector of ages
  • rateList 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.
  • popList containing matrices of populations in same form as rate and containing population numbers.
  • typeType of object. In this case, migration.
  • labellabel from mort$label

See Also

demogdata

Examples

Run this code
require(addb)
aus.mig <- netmigration(australia,aus.fertility)
plot(aus.mig)

Run the code above in your browser using DataLab