pysal.explore.esda.
Moran_Rate
(e, b, w, adjusted=True, transformation='r', permutations=999, two_tailed=True)[源代码]¶利率变量的修正莫兰I全局自相关统计 [AR99]
参数: |
|
---|
实例
>>> import pysal.lib
>>> w = pysal.lib.io.open(pysal.lib.examples.get_path("sids2.gal")).read()
>>> f = pysal.lib.io.open(pysal.lib.examples.get_path("sids2.dbf"))
>>> e = np.array(f.by_col('SID79'))
>>> b = np.array(f.by_col('BIR79'))
>>> from pysal.explore.esda.moran import Moran_Rate
>>> mi = Moran_Rate(e, b, w, two_tailed=False)
>>> "%6.4f" % mi.I
'0.1662'
>>> "%6.4f" % mi.p_norm
'0.0042'
属性: |
|
---|
方法
by_col \(df,events,populations[,w,…]) |
在数据帧上计算莫兰速率统计的函数 |
__init__
(e, b, w, adjusted=True, transformation='r', permutations=999, two_tailed=True)[源代码]¶初始化自身。请参阅帮助(键入(self))以获得准确的签名。
方法
__init__ \(E,B,W[,已调整,…]) |
初始化自身。 |
by_col \(df,events,populations[,w,…]) |
在数据帧上计算莫兰速率统计的函数 |