{"id":22636687,"url":"https://github.com/daroczig/migration.indices","last_synced_at":"2025-04-11T21:21:17.750Z","repository":{"id":3295095,"uuid":"4336350","full_name":"daroczig/migration.indices","owner":"daroczig","description":"Migration indices","archived":false,"fork":false,"pushed_at":"2014-06-14T22:41:35.000Z","size":460,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T06:59:33.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"plivo/plivo-ruby","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daroczig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-15T13:58:23.000Z","updated_at":"2022-04-12T15:02:34.000Z","dependencies_parsed_at":"2022-09-08T12:23:01.632Z","dependency_job_id":null,"html_url":"https://github.com/daroczig/migration.indices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daroczig%2Fmigration.indices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daroczig%2Fmigration.indices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daroczig%2Fmigration.indices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daroczig%2Fmigration.indices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daroczig","download_url":"https://codeload.github.com/daroczig/migration.indices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480421,"owners_count":21110939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T03:29:51.508Z","updated_at":"2025-04-11T21:21:17.721Z","avatar_url":"https://github.com/daroczig.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"This package provides various indices, like Crude Migration Rate, different Gini indices or the Coefficient of Variation among others, to show the (un)equality of migration.\n\n# Installation\n\nMost recent stable version can be installed directly from CRAN:\n\n```\ninstall.packages('migration.indices')\n```\n\nOr please use `devtools` for the development version: [![Build Status](https://travis-ci.org/daroczig/migration.indices.png?branch=master)](https://travis-ci.org/daroczig/migration.indices)\n\n```\nlibrary(devtools)\ninstall_github('migration.indices', 'daroczig')\n```\n\n# Examples:\n\nThe below migration matrix is a demo dataset based on\n\n * David A. Plane and Gordon F. Mulligan (1997): Measuring Spatial Focusing in a Migration System. In. Demography, Vol. 34, No. 2 (May, 1997), pp. 251-262\n\n```r\nlibrary(migration.indices)\ndata(migration.hyp)\nres \u003c- migration.gini(migration.hyp)\nres\n```\n\nResulting in:\n\n```\nTotal Flows Gini Index:              0.2222222 \nRows Gini Index:                     0 \nStandardized Rows Gini Index:        0 \nColumns Gini Index:                  0.05555556 \nStandardized Columns Gini Index:     25 \nExchange Gini Index:                 0.05555556 \nStandardized Exchange Gini Index:    25 \nIn-migration Field Gini Index:       vector \nWeighted In-migration Gini Index:    0.1222222 \nOut-migration Field Gini Index:      vector \nWeighted Out-migration Gini Index:   0 \nMigration-weighted Mean Gini Index:  0.06111111 \n```\n\nWhere *In* and *Out-migration Field Gini Index* are vectors:\n\n```rout\n\u003e res$migration.gini.in\n[1] 0.2000000 0.5000000 0.3333333\n\u003e res$migration.gini.out\n[1] 0 0 0\n```\n\n## World dataset\n\nUsing the [Global Bilateral Migration Database](http://data.worldbank.org/data-catalog/global-bilateral-migration-database) (2000) of World Bank:\n\n```\ndata(migration.world)\nmigration.gini(migration.world)\n```\n\nResults in:\n\n```\nTotal Flows Gini Index:              0.9855174 \nRows Gini Index:                     0.004272225 \nStandardized Rows Gini Index:        0.4335008 \nColumns Gini Index:                  0.004067787 \nStandardized Columns Gini Index:     0.4127565 \nExchange Gini Index:                 1.382263e-05 \nStandardized Exchange Gini Index:    0.001402575 \nIn-migration Field Gini Index:       vector \nWeighted In-migration Gini Index:    0.004241788 \nOut-migration Field Gini Index:      vector \nWeighted Out-migration Gini Index:   0.004171575 \nMigration-weighted Mean Gini Index:  0.004206681 \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaroczig%2Fmigration.indices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaroczig%2Fmigration.indices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaroczig%2Fmigration.indices/lists"}