segregation.singlegroup.ModifiedDissim¶
- class segregation.singlegroup.ModifiedDissim(data, group_pop_var, total_pop_var, iterations=500, w=None, network=None, distance=None, decay='linear', function='triangular', precompute=None, n_jobs=-1, backend='threading', **kwargs)[source]¶
Modified 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.KernelW,optional lipysal spatial kernel weights object used to define an egohood
- network
pandarm.Network pandarm Network object representing the study area
- distance
int Maximum distance (in units of geodataframe CRS) to consider the extent of the egohood
- decay
str type of decay function to apply. Options include
- precomputebool
Whether to precompute the pandarm Network object
- data
- Attributes:
- statistic
float Modified Dissim Index
- core_data
pandas.DataFrame A pandas DataFrame that contains the columns used to perform the estimate.
- statistic
Notes
Based on Carrington, William J., and Kenneth R. Troske. “On measuring segregation in samples with small units.” Journal of Business & Economic Statistics 15.4 (1997): 402-409.
Reference: [Carrington and Troske, 1997].
- __init__(data, group_pop_var, total_pop_var, iterations=500, w=None, network=None, distance=None, decay='linear', function='triangular', precompute=None, n_jobs=-1, backend='threading', **kwargs)[source]¶
Init.
Methods
__init__(data, group_pop_var, total_pop_var)Init.