neighbayes.diagnostics.lmtests.bayesian_lm_error_from_sar_test

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

LM test for a spatial error process at a SAR fit (H₀: λ = 0 | SAR).

Whether the SAR should be the SARAR; the error score, orthogonal to \((\beta, \rho, \sigma^2)\), so that the estimated lag is accounted for ([Anselin, 1988]).

Returns:

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

Return type:

BayesianLMTestResult