segregation.singlegroup.SpatialDissim¶
- class segregation.singlegroup.SpatialDissim(data, group_pop_var, total_pop_var, w=None, standardize=False, **kwargs)[source]¶
Spatial Dissimilarity Index.
- Parameters:
- data
pandas.DataFrameorgeopandas.GeoDataFrame,required dataframe or geodataframe if spatial index holding data for location of interest
- group_pop_var
str,required name of column on dataframe holding population totals for focal group
- total_pop_var
str,required name of column on dataframe holding total overall population
- w
libpysal.weights.W pysal spatial weights object measuring connectivity between geographic units. If None, a Queen object will be created
- standardizebool
A condition for row standardisation of the weights matrices. If True, the values of cij in the formulas gets row standardized. For the sake of comparison, the seg R package of Hong, Seong-Yun David O’Sullivan, and Yukio Sadahiro. “Implementing spatial segregation measures in R.” PloS one 9.11 (2014): e113767. works by default without row standardization.
- data
- Attributes:
- statistic
float SpatialDissim Index
- core_data
pandas.DataFrame A pandas DataFrame that contains the columns used to perform the estimate.
- statistic
Notes
Based on Morrill, R. L. (1991) “On the Measure of Geographic Segregation”. Geography Research Forum.
Reference: [Morrill, 1991].
Methods
__init__(data, group_pop_var, total_pop_var)Init.