neighbayes.diagnostics.lmtests.bayesian_robust_lm_lag_sem_test

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

Robust LM-lag at an OLS or SEM fit (H₀: ρ = 0, robust to a local θ).

The lag score of bayesian_lm_lag_test(), net of the \(WX\) direction. At the OLS fit, where the lag score is the error score plus \(\hat\beta^\top\) times the \(WX\) score, it is the LM-Error statistic: the Robust LM-Lag-SDM of Koley and Bera [2024] there.

Returns:

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

Return type:

BayesianLMTestResult