migration.gini.row | R Documentation |

The Rows Gini index concentrates on the "relative extent to which the destination selections of out-migrations are spatially focused":

*G^T_R = \frac{∑_i ∑_{j \neq i} ∑_{h \neq i,j} | M_{ij} - M_{ih} | }{ (2n(n-1)-1) ∑_i ∑_{j \neq i} M_{ij}}*

This implementation solves the above formula by computing the `dist`

matrix for each row.

migration.gini.row(m)

`m` |
migration matrix |

A number between 0 and 1 where 0 means no spatial focusing and 1 shows maximum focusing.

David A. Plane and Gordon F. Mulligan (1997) Measuring Spatial Focusing in a Migration System.

*Demography***34**, 251–262

`migration.gini.col`

`migration.gini.row.standardized`

data(migration.hyp) migration.gini.row(migration.hyp) # 0 migration.gini.row(migration.hyp2) # 0.02083333

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.