esda.LOSH¶
- class esda.LOSH(connectivity=None, inference=None)[source]¶
Local spatial heteroscedasticity (LOSH)
- __init__(connectivity=None, inference=None)[source]¶
Initialize a losh estimator
- Parameters:
- connectivity
scipy.sparsematrixobject the connectivity structure describing the relationships between observed units.
- inference
python:str describes type of inference to be used. options are “chi-square” or “permutation” methods.
- connectivity
- Attributes:
- Hi
numpyarray Array of LOSH values for each spatial unit.
- ylag
numpyarray Spatially lagged y values.
- yresid
numpyarray Spatially lagged residual values.
- VarHi
numpyarray Variance of Hi.
- pval
numpyarray P-values for inference based on either “chi-square” or “permutation” methods.
- Hi
Methods
__init__([connectivity, inference])Initialize a losh estimator
fit(y[, a])- Parameters:
get_params([deep])Get parameters for this estimator.
set_params(**params)Set the parameters of this estimator.