neighbayes.diagnostics.lmtests.bayesian_lm_error_test¶
- neighbayes.diagnostics.lmtests.bayesian_lm_error_test(model)[source]¶
LM test for an omitted spatial error process (H₀: λ = 0).
The score test of \(\lambda\) at an OLS, SLX, SAR or SDM fit (the Tobit suites use it at their SAR and SDM nulls). At a degenerate posterior on the OLS estimate it is Anselin’s LM-error, \((e^\top W e)^2/(\sigma^4 T_{WW})\).