migration.gini.total: Total Flows Gini Index

Description Usage Arguments Value References See Also Examples

View source: R/gini.R

Description

The Total Gini Index shows the overall concentration of migration with a simple number computed by comparing each cell of the migration matrix with every other cell except for the diagonal:

G^T = \frac{∑_i ∑_{j \neq i} ∑_k ∑_{l \neq k} | M_{ij} - M_{kl} | }{ (2n(n-1)-1) ∑_i ∑_{j \neq i} M_{ij}}

This implementation solves the above formula by a simple loop for performance issues to compare all values to the others at one go, although smaller migration matrices could also be addressed by a much faster dist method. Please see the sources for more details.

Usage

1
  migration.gini.total(m, corrected = TRUE)

Arguments

m

migration matrix

corrected

Bell et al. (2002) updated the formula of Plane and Mulligan (1997) to have 2{n(n-1)-1} instead of 2n(n-1) in the denominator to "ensure that the index can assume the upper limit of 1".

Value

A number between 0 and 1 where 0 means no spatial focusing and 1 shows that all migrants are found in one single flow.

References

See Also

migration.gini.col migration.gini.row migration.gini.exchange migration.gini.in migration.gini.out

Examples

1
2
3
4
5

migration.indices documentation built on May 2, 2019, 6:56 a.m.