Learn R Programming

migest

Tools for estimating, measuring and working with migration data.

See the pkgdown site for more information

Installation

You can install the released version of migest from CRAN with:

install.packages("migest")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("guyabel/migest")

Copy Link

Version

Install

install.packages('migest')

Monthly Downloads

583

Version

2.0.5

License

GPL-3

Maintainer

Guy Abel

Last Published

July 3rd, 2025

Functions in migest (2.0.5)

ffs_diff

Estimation of bilateral migrant flows from bilateral migrant stocks using stock differencing approaches
index_impact

Summary indices of migration impact
index_age

Summary indices of migration age profile
index_connectivity

Summary indices of migration connectivity
index_age_rc

Summary indices of age migration profile based on parameters from a Rogers and Castro schedule
ffs_rates

Estimation of bilateral migrant flows from bilateral migrant stocks using rates approaches
ffs_demo

Estimation of bilateral migrant flows from bilateral migrant stocks using demographic accounting approaches
dict_ims

Dictionary to look up region geographies based on countries used in UN DESA International Migrant Stock.
index_distance

Summary indices of migration distance
index_intensity

Summary indices of migration intensity
ipf_seed

Quickly create IPF seed
italy_area

Single year age-specific origin destination migration flows between Italian NUTS1 areas
ipf3

Iterative proportional fitting routine for the indirect estimation of origin-destination-migrant type migration flow tables with known origin and destination margins.
ipf3_qi

Iterative proportional fitting routine for the indirect estimation of origin-destination-migrant type migration flow tables with known origin and destination margins and diagonal elements.
indian_sub

Lifetime migration totals for states and zones in the Indian 1901 to 1931
ipf2

Iterative proportional fitting routine for the indirect estimation of origin-destination migration flow table with known margins.
match_birthplace_tot

Adjust migrant stock tables to have matching place of birth (origin) totals
manila_1970

Manila female population 1970 by age
mig_tibble

Helper function to format migration input
migest-package

Methods for the Indirect Estimation of Bilateral Migration
korea_gravity

Annual origin destination migration flows between Korean regions alongside selected geographic, economic and demographic variables.
ipumsi_age

Age specific migration and population counts from two IPUMSI samples
multi_comp2

Multiplicative component descriptions of origin-destination flow tables based on total reference coding system.
net_sr

Estimate net migration from survival ratios applied to lifetime migration data
multi_comp

Multiplicative component description of origin-destination migration flow tables
net_matrix_optim

Estimate Migration Flows to Match Net Totals via Quadratic Optimization
ipf2_block

Iterative proportional fitting routine for the indirect estimation of origin-destination-type migration flow tables with known origin and destination margins and block diagonal elements.
ipf2_stripe

iterative proportional fitting routine for the indirect estimation of origin-destination-type migration flow tables with known origin and destination margins and stripe elements.
mig_matrix

Helper function to format migration input
mig_chord

Chord diagram for directional origin-destination data
%>%

Pipe operator
net_matrix_ipf

Estimate Migration Flows to Match Net Totals via Iterative Proportional Fitting
str_wrap_n

Wrap character string to fit a target number of lines
stripe_matrix

Create a stripped matrix with non-uniform block sizes.
quadratic_eqn

Solutions from the quadratic equation
net_matrix_lp

Estimate Migration Flows to Match Net Totals via Linear Programming
str_wrap_n_single

Single line wrap for string
sum_bilat

Summary of bilateral flows, counter-flow and net migration flow
umbrella

Umbrella colour scheme
net_vs

Estimate net migration from vital statistics
nb_non_zero

Handle negative native born populations
nb_scale_global

Scale native born populations to match global differences in births and deaths over period
new_england_1960

New England male white-native population totals in 1950 and 1960 by place of birth and age
sum_net

Calculate net migration from an origin-destination migration flow matrix.
sum_expand

Sum bilateral data to include aggregate bilateral totals for origin and destination meta areas
net_matrix_entropy

Estimate Migration Flows to Match Net Totals via Entropy Minimization
rc_model_fund

Fundamental parameters for Rogers-Castro migration schedule
rc_model_un

Model parameters for six Rogers-Castro migration schedules proposed by UN DESA
nchars_wrap

Count the number of characters per line
sum_od

Extract a classic origin-destination migration flow matrix.
sum_region

Unilateral summaries of in-, out-, turnover and net-migration totals from an origin-destination migration flow matrix or data frame.
uar_1960

Lifetime migration data for Governorates of United Arab Republic in 1960
sum_lump

Sum and lump together small flows into a "other" category
rescale_net

Rescale net migration total to a global zero sum
rescale_integer_sum

Rescale integer vector to a set sum
usa_1960

US population totals in 1950 and 1960 by place of birth, age, sex and race
block_matrix

Create a block matrix with non-uniform block sizes.
alabama_1970

Alabama population totals in 1960 and 1970 by age, sex and race
death_mat

Calculate deaths for each element of place of birth - place of residence stock matrix
birth_mat

Calculate births for each element of place of birth - place of residence stock matrix
block_sum

Sum over a selected block in a block matrix
cm2

Conditional maximization routine for the indirect estimation of origin-destination migration flow table with known margins
cm_net_tot

Conditional maximization routine for the indirect estimation of origin-destination-type migration flow tables with known net migration and grand totals.
cm_net

Conditional maximization routine for the indirect estimation of origin-destination-type migration flow tables with known net migration totals.
cm3

Conditional maximization routine for the indirect estimation of origin-destination-migrant type migration flow tables with known origin and destination margins.
bombay_1951

Bombay population totals in 1941 and 1951 by age