estimation.zip (1.18 MB)
Estimation code and input data to produce bilateral international migration flow estimates for 200 countries (1990-1995 to 2010-2015)
Version 2 2023-02-25, 02:57
Version 1 2019-05-16, 07:57
software
posted on 2023-02-25, 02:57 authored by Guy AbelGuy AbelThe formatted data and code for the application of the migration estimation. It consists of
1) a tidy version of the United Nations bilateral migrant stock data, demographic period measures for net migration, births and deaths and demographic population totals. The input data is divided into three files:
i) demog.csv containing data on demographic change from WPP2017 https://population.un.org/wpp/ in tidy format with columns for
- period: five year period label
- year0: initial year of five year period
- name: country name
- alpha3: country three letter alpha code
- b: births during period
- d: deaths during period
- net: net migration during period
ii) pop.csv containing data on population from WPP2017 https://population.un.org/wpp/ in tidy format with columns for
- year: year of time point
- name: country name
- alpha3: country three letter alpha code
- pop: population at time point
iii) stock.csv containing data on migrant stocks from TIMS2017 http://www.un.org/en/development/desa/population/migration/data/estimates2/estimates17.shtml in tidy format with columns for
- por: place of residence of migrant stock at time point
- pob: place of birth of migrant stock
- year: year of time point
- stock: migrant stock at time point
i) demog.csv containing data on demographic change from WPP2017 https://population.un.org/wpp/ in tidy format with columns for
- period: five year period label
- year0: initial year of five year period
- name: country name
- alpha3: country three letter alpha code
- b: births during period
- d: deaths during period
- net: net migration during period
ii) pop.csv containing data on population from WPP2017 https://population.un.org/wpp/ in tidy format with columns for
- year: year of time point
- name: country name
- alpha3: country three letter alpha code
- pop: population at time point
iii) stock.csv containing data on migrant stocks from TIMS2017 http://www.un.org/en/development/desa/population/migration/data/estimates2/estimates17.shtml in tidy format with columns for
- por: place of residence of migrant stock at time point
- pob: place of birth of migrant stock
- year: year of time point
- stock: migrant stock at time point
2) an R script that given the three imported data sets a) cleans each to find the countries with complete input data; b) calculates the native population for the diagonal elements of the migrant stock data required for some estimation methods; and c) estimates bilateral migration flows for each method and period combination.