How do you choose the appropriate spatial weight matrix for spatial lagrange multiplier tests?
Spatial lagrange multiplier tests and diagnostics are useful tools for detecting and correcting spatial dependence and heterogeneity in regression models. Spatial dependence means that the error terms or the dependent variable are correlated across space, while spatial heterogeneity means that the regression coefficients vary across space. Both of these phenomena can bias the estimation and inference of the regression parameters and affect the validity of the model.