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
connectivityscipy.sparse matrix object

the connectivity structure describing the relationships between observed units.

inferencestr

describes type of inference to be used. options are “chi-square” or “permutation” methods.

Attributes
Hinumpy array

Array of LOSH values for each spatial unit.

ylagnumpy array

Spatially lagged y values.

yresidnumpy array

Spatially lagged residual values.

VarHinumpy array

Variance of Hi.

pvalnumpy array

P-values for inference based on either “chi-square” or “permutation” methods.

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.