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.sparse
matrix
object
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
numpy
array
Array of LOSH values for each spatial unit.
- ylag
numpy
array
Spatially lagged y values.
- yresid
numpy
array
Spatially lagged residual values.
- VarHi
numpy
array
Variance of Hi.
- pval
numpy
array
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.