age.specific.migration(wpp.year = 2015, years = seq(1955, 2100, by = 5), countries = NULL, smooth = TRUE, write.to.disk = FALSE, directory = getwd(), file.prefix = "migration", verbose = TRUE)migration dataset where aggregations are excluded.TRUE results are written to disk.write.to.disk is TRUE.write.to.disk is TRUE results are written into two text files with this prefix, a letter M and F determining the sex, and concluded by the .txt suffix. By default migrationM.txt and migrationF.txt.male and female), each having the same structure as migrationM.
wpp2012, for the newest release of the WPP, the wpp2015, the UN Population Division did not publish the sex- and age-specific net migration counts, only the totals. However, since the sex- and age-schedules are needed for population projections, this function tries to reconstruct those missing datasets. It uses the published population projections by age and sex, fertility and mortality projections from the wpp package. It computes the population projection without migration and sets the residual to the published population projection as the net migration. Such numbers are then scaled so that the sum over sexes and ages correspond to the total migration count. If smooth is TRUE a smoothing procedure is performed over ages where necessary. Also, for simplicity, we set migration of old ages (90+) to zero. Both is done before the scaling.
pop.predict, migration migrationM
## Not run:
# asmig <- age.specific.migration()
# head(asmig$male)
# head(asmig$female)## End(Not run)
Run the code above in your browser using DataLab