{'fraction_non_alphanumeric': 0.012468827930174564, 'fraction_numerical': 0.0, 'mean_word_length': 5.764044943820225, '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}}
Testing for random effects in panel models with spatially correlated disturbances

In the empirical analysis of panel data the Breusch–Pagan (BP) statistic has become a standard tool to infer on unobserved heterogeneity over the cross‐section. Put differently, the test statistic is central to discriminate between the pooled regression and the random effects model. Conditional versions of the test statistic have been provided to immunize inference on unobserved heterogeneity against random time effects or patterns of spatial error correlation. Panel data models with spatially correlated error terms are typically set out under the presumption of some known adjacency matrix parameterizing the correlation structure up to a scaling factor. This paper delivers a bootstrap scheme to generate critical values for the BP statistic allowing robust inference under misspecification of the adjacency matrix. Moreover, asymptotic results are derived for the case of a finite cross‐section and infinite time dimension. Finite sample simulations show that misspecification of spatial covariance features could lead to large size distortions, while the robust bootstrap procedure retains asymptotic validity.