pysal.explore.inequality.theil.
TheilDSim
(y, partition, permutations=99)[source]¶Random permutation based inference on Theil’s inequality decomposition.
Provides for computationally based inference regarding the inequality decomposition using random spatial permutations. See [RSastreGutierrez10].
Parameters: 


Examples
>>> import pysal.lib
>>> from pysal.explore.inequality.theil import TheilDSim
>>> import numpy as np
>>> f=pysal.lib.io.open(pysal.lib.examples.get_path("mexico.csv"))
>>> vnames=["pcgdp%d"%dec for dec in range(1940,2010,10)]
>>> y=np.array([f.by_col[v] for v in vnames]).T
>>> regimes=np.array(f.by_col('hanson98'))
>>> np.random.seed(10)
>>> theil_ds=TheilDSim(y,regimes,999)
>>> theil_ds.bg_pvalue
array([0.4 , 0.344, 0.001, 0.001, 0.034, 0.072, 0.032])
Attributes: 


__init__
(y, partition, permutations=99)[source]¶Initialize self. See help(type(self)) for accurate signature.
Methods
__init__ (y, partition[, permutations]) 
Initialize self. 