spreg.panel_LMerror

spreg.panel_LMerror(y, x, w)[source]

Lagrange Multiplier test on error spatial autocorrelation in panel data. [].

Parameters:
yarray

nxt or (nxt)x1 array for dependent variable

xarray

nx(txk) or (nxt)xk array for independent (exogenous) variables, excluding the constant

wpysal W object

Spatial weights object

Returns:
lmetuple

Pair of statistic and p-value for the LM error test.