{'fraction_non_alphanumeric': 0.027106658809664112, 'fraction_numerical': 0.0, 'mean_word_length': 5.242647058823529, '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}}
UNIT ROOT TESTING IN PRACTICE: DEALING WITH UNCERTAINTY OVER THE TREND AND INITIAL CONDITION

In this paper we focus on two major issues that surround testing for a unit root in practice, namely, (i) uncertainty as to whether or not a linear deterministic trend is present in the data and (ii) uncertainty as to whether the initial condition of the process is (asymptotically) negligible or not. In each case simple testing procedures are proposed with the aim of maintaining good power properties across such uncertainties. For the first issue, if the initial condition is negligible, quasi-differenced (QD) detrended (demeaned) Dickey–Fuller-type unit root tests are near asymptotically efficient when a deterministic trend is (is not) present in the data generating process. Consequently, we compare a variety of strategies that aim to select the detrended variant when a trend is present, and the demeaned variant otherwise. Based on asymptotic and finite-sample evidence, we recommend a simple union of rejections-based decision rule whereby the unit root null hypothesis is rejected whenever either of the detrended or demeaned unit root tests yields a rejection. Our results show that this approach generally outperforms more sophisticated strategies based on auxiliary methods of trend detection. For the second issue, we again recommend a union of rejections decision rule, rejecting the unit root null if either of the QD or ordinary least squares (OLS) detrended/demeaned Dickey–Fuller-type tests rejects. This procedure is also shown to perform well in practice, simultaneously exploiting the superior power of the QD (OLS) detrended/demeaned test for small (large) initial conditions.