neighbayes.diagnostics.lmtests.bayesian_glm_lm_lag_test

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

LM test for the latent SAR at the GLM null.

\((s + q)^2 / (I_s + V_q)\), the score test of \(\eta = S(\rho)(X\beta + \varepsilon)\) against the logit or NB fit: the spillover and the error terms together, in the proportion one \(\rho\) implies (see the module).

Returns:

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

Return type:

BayesianLMTestResult