Learn R Programming

migration.indices (version 0.3.1)

migration.inequality: Migration Inequality Index

Description

Measures the distance from an expected distribution: $$I_{MI} = \frac{ \sum_i \sum_{j \neq i} | M_{ij} - M_{ij}' | }{2} $$

Usage

migration.inequality(m, expected = c("equal", "weighted"))

Arguments

m

migration matrix

expected

type of expected distribution

Value

A number between 0 and 1 where 1 shows greater inequality.

References

  • M. Bell, M. Blake, P. Boyle, O. Duke-Williams, P. Rees, J. Stillwell and G. Hugo (2002) Cross-National Comparison of Internal Migration. Issues and Measures. Journal of the Royal Statistical Society. Series A (Statistics in Society) 165, 435--464

Examples

Run this code
# NOT RUN {
data(migration.hyp)
migration.inequality(migration.hyp)
migration.inequality(migration.hyp, expected = 'weighted')
data(migration.world)
migration.inequality(migration.world)
# }

Run the code above in your browser using DataLab