neighbayes.diagnostics.lmtests.bayesian_lm_lag_test

neighbayes.diagnostics.lmtests.bayesian_lm_lag_test(model)[source]

LM test for an omitted spatial lag (H₀: ρ = 0).

The score test of \(\rho\) at an OLS, SLX or SEM fit. At a degenerate posterior on the OLS estimate it is Anselin’s LM-lag, \((e^\top W y)^2 / (\sigma^4 T_{WW} + \sigma^2 \|M_X WX\beta\|^2)\) ([Anselin et al., 1996], eq. 13).

Returns:

Per-draw LM samples, summary statistics and df = 1.

Return type:

BayesianLMTestResult