{'fraction_non_alphanumeric': 0.0134185303514377, 'fraction_numerical': 0.0, 'mean_word_length': 5.189723320158103, '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}}
Specification Testing in Nonstationary Time Series Models

In this paper, we consider a specification testing problem in nonlinear time series models with nonstationary regressors, and we propose using a nonparametric kernel‐based test statistic. The null asymptotics for the proposed nonparametric test statistic have been well developed in the existing literature. In this paper, we study the local asymptotics of the test statistic (i.e. the asymptotic properties of the test statistic under a sequence of general nonparametric local alternatives) and show that the asymptotic distribution depends on the asymptotic behaviour of the distance function, which is the local deviation from the parametrically specified model in the null hypothesis. In order to implement the proposed test in practice, we introduce a bootstrap procedure to approximate the critical values of the test statistic and establish a new Edgeworth expansion, which is used to justify the use of such an approximation. Based on the approximate critical values, we develop a bandwidth selection method, which chooses the optimal bandwidth that maximizes the local power of the test while its size is controlled at a given significance level. The local power is defined as the power of the proposed test for a given sequence of local alternatives. Such a bandwidth selection is made feasible by an approximate expression for the local power of the test as a function of the bandwidth. A Monte Carlo simulation study is provided to illustrate the finite sample performance of the proposed test.