segregation.singlegroup.SpatialDissim

class segregation.singlegroup.SpatialDissim(data, group_pop_var, total_pop_var, w=None, standardize=False, **kwargs)[source]

Spatial Dissimilarity Index.

Parameters:
datapandas.DataFrame or geopandas.GeoDataFrame, required

dataframe or geodataframe if spatial index holding data for location of interest

group_pop_varstr, required

name of column on dataframe holding population totals for focal group

total_pop_varstr, required

name of column on dataframe holding total overall population

w: libpysal.weights.W

pysal spatial weights object measuring connectivity between geographic units. If nNne, 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 with row standardization.

Notes

Based on Morrill, R. L. (1991) “On the Measure of Geographic Segregation”. Geography Research Forum.

Reference: [Morrill, 1991].

Attributes:
statisticfloat

SpatialDissim Index

core_dataa pandas DataFrame

A pandas DataFrame that contains the columns used to perform the estimate.

__init__(data, group_pop_var, total_pop_var, w=None, standardize=False, **kwargs)[source]

Init.

Methods

__init__(data, group_pop_var, total_pop_var)

Init.