{'fraction_non_alphanumeric': 0.01692524682651622, 'fraction_numerical': 0.0, 'mean_word_length': 5.283185840707965, '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}}
Practical Proposals for Specifying k-Nearest Neighbours Weights Matrices

Abstract In this article, we introduce and evaluate testing procedures for specifying the number k of nearest neighbours in the weights matrix of a spatial econometric model. An increasing and a decreasing neighbours testing procedure are suggested. Kelejian's J-test for non-nested spatial models is used in the testing procedures. The testing procedures give formal justification for the choice of k, something which has been lacking in the classical spatial econometric literature. Simulations show that the testing procedures can be used in large samples to determine k. An empirical example involving house price data is provided.