EconPapers    
Economics at your fingertips  
 

kpsstest: A command that implements the Kwiatkowski, Phillips, Schmidt, and Shin test with sample-specific critical values and reports p-values

Ali Kagalwala ()
Additional contact information
Ali Kagalwala: Texas A&M University

Stata Journal, 2022, vol. 22, issue 2, 269-292

Abstract: Commonly used unit-root tests in time-series analysis—such as the Dickey–Fuller and Phillips–Perron tests—use a null hypothesis that the series con- tains a unit root. Such tests have low power against the alternative—when a time series is near integrated or highly autoregressive—implying that they do poorly in distinguishing such a series from having a unit root. Kwiatkowski et al. (1992, Jour- nal of Econometrics 54: 159–178) introduced the Kwiatkowski, Phillips, Schmidt, and Shin test, in which the null hypothesis is that the series is stationary, to deal with this problem. One shortcoming of the presently available Kwiatkowski, Phillips, Schmidt, and Shin test in Stata is that it uses asymptotic critical values regardless of the sample size. This poses a problem in that researchers—especially social scientists—are often presented with short time series. I introduce kpsstest, a command that extends the previous implementation by including an option for a zero-mean-stationary null hypothesis, generating sample- and test-specific critical values, and reporting appropriate p-values.

Keywords: kpsstest; KPSS; GKPSS; unit-root tests; stationary null hypothesis; time series (search for similar items in EconPapers)
Date: 2022
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj22-2/st0671/
References: Add references at CitEc
Citations: View citations in EconPapers (2)

Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0671 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:22:y:2022:i:2:p:269-292

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

DOI: 10.1177/1536867X221106371

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-20
Handle: RePEc:tsj:stataj:v:22:y:2022:i:2:p:269-292