Implementing spatial segregation measures in R

PLoS One. 2014 Nov 21;9(11):e113767. doi: 10.1371/journal.pone.0113767. eCollection 2014.

Abstract

Reliable and accurate estimation of residential segregation between population groups is important for understanding the extent of social cohesion and integration in our society. Although there have been considerable methodological advances in the measurement of segregation over the last several decades, the recently developed measures have not been widely used in the literature, in part due to their complex calculation. To address this problem, we have implemented several newly proposed segregation indices in R, an open source software environment for statistical computing and graphics, as a package called seg. Although there are already a few standalone applications and add-on packages that provide access to similar methods, our implementation has a number of advantages over the existing tools. First, our implementation is flexible in the sense that it provides detailed control over the calculation process with a wide range of input parameters. Most of the parameters have carefully chosen defaults, which perform acceptably in many situations, so less experienced users can also use the implemented functions without too much difficulty. Second, there is no need to export results to other software programs for further analysis. We provide coercion methods that enable the transformation of our output classes into general R classes, so the user can use thousands of standard and modern statistical techniques, which are already available in R, for the post-processing of the results. Third, our implementation does not require commercial software to operate, so it is accessible to a wider group of people.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Models, Theoretical*

Grants and funding

This work was partially supported by the Grant-in-Aid for Scientific Research, KAKENHI 24- 02309 (SYH) from the Japan Society for the Promotion of Science (JSPS, URL: http://www.jsps.go.jp/j-grantsinaid/20_tokushourei/index.html). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.