{'fraction_non_alphanumeric': 0.020928116469517744, 'fraction_numerical': 0.003639672429481347, 'mean_word_length': 5.179775280898877, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Simple Tests for Endogeneity of Spatial Weights Matrices

Abstract 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 for the elements of the endogenous spatial weights matrix as in Qu and Lee (2015). Our test statistic is simple to calculate because it requires computationally simple estimations. By construction, the test statistic is robust in the sense that its asymptotic null distribution is a centered chi-square distribution regardless of the (local) presence of a spatial autoregressive parameter in the alternative model. We summarize the asymptotic properties of our test statistic under the null and the alternative hypotheses. To investigate its finite sample size and power properties, we conduct a Monte Carlo study. The results are in line with our theoretical findings and indicate that the robust test has good size and power properties.