In this study, we propose a Rao's score (RS) statistic (Lagrange multiplier (LM) statistic) to test for endogeneity of the spatial weights matrix in a spatial autoregressive model. To achieve this, we start with a spatial autoregressive model with an acceptable form for the generating process...