Summary indices of migration connectivity
index_connectivity(
m = NULL,
gini_orig_all = FALSE,
gini_dest_all = FALSE,
gini_corrected = TRUE,
orig_col = "orig",
dest_col = "dest",
flow_col = "flow",
long = TRUE
)
A tibble with 12 summary measures:
Migration connectivity index of Bell et. al. (2002) for the share of non-zero flows. A value of 0 means no connections (all zero flows) and 1 shows that all regions are connected by migrants.
Migration inequality index of Bell et. al. (2002) based on a distributions of flows compared to equal distributions of expected flows . A value of 0 shows complete equality in flows and 1 shows maximum inequality.
Migration inequality index of Bell et. al. (2002) based on a distributions of flows compared to distributions of expected flows from a Poisson regression independence fit flow ~ orig + dest
. A value of 0 shows complete equality in flows and 1 shows maximum inequality.
Overall concentration of migration from Bell (2002), corrected from Plane and Mulligan (1997). A value of 0 means no spatial focusing and 1 shows that all migrants are found in one single flow. Calculated using migration.indices::migration.gini.total()
Relative extent to which the origin selections of out-migrations are spatially focused. A value of 0 means no spatial focusing and 1 shows maximum focusing. Adapted from migration.indices::migration.gini.row.standardized()
.
Relative extent to which the destination selections of in-migrations are spatially focused. A value of 0 means no spatial focusing and 1 shows maximum focusing. Adapted from migration.indices::migration.gini.col.standardized()
.
Origin spatial focusing, from Bell et. al. (2002). Calculated using migration.indices::migration.weighted.gini.out()
Destination spatial focusing, from Bell et. al. (2002). Calculated using migration.indices::migration.weighted.gini.in()
Mean spatial focusing, from Bell et. al. (2002). Average of the origin and destination migration weighted Gini indices (mwg_orig
and mwg_dest
). A value of 0 means no spatial focusing and 1 shows that all migrants are found in one region. Calculated using migration.indices::migration.weighted.gini.mean()
Coefficient of variation from Rogers and Raymer (1998).
Aggregated system-wide coefficient of variation from Rogers and Sweeney (1998), using migration.indices::migration.acv()
A matrix
or data frame of origin-destination flows. For matrix
the first and second dimensions correspond to origin and destination respectively. For a data frame ensure the correct column names are passed to orig_col
, dest_col
and flow_col
.
Logical to include gini index values for all origin regions. Default FALSE
.
Logical to include gini index values for all destination regions. Default FALSE
.
Logical to use corrected denominator in Gini index of Bell (2002) or original of David A. Plane and Mulligan (1997)
Character string of the origin column name (when m
is a data frame rather than a matrix
)
Character string of the destination column name (when m
is a data frame rather than a matrix
)
Character string of the flow column name (when m
is a data frame rather than a matrix
)
Logical to return a long data frame with index values all in one column
library(dplyr)
korea_gravity %>%
filter(year == 2020) %>%
select(orig, dest, flow) %>%
index_connectivity()
Run the code above in your browser using DataLab