Learn R Programming

migration.indices (version 0.3.1)

migration.rate: Aggregate net migration rate

Description

$$ANMR = 100\frac{ \sum_i |D_i - O_i| }{ \sum_i P_i }$$ where \(D_i\) is the total inflows to zone \(i\) and \(O_i\) is the total outflows from zone \(i\).

Usage

migration.rate(m, PAR)

Arguments

m

migration matrix

PAR

population at risk

References

Examples

Run this code
# NOT RUN {
data(migration.world)
migration.rate(migration.world, 6e+9)
# }

Run the code above in your browser using DataLab