xtrec: Panel Unit Root Test Based on Recursive Detrending

Implements the recursively detrended panel unit root tests proposed by Westerlund (2015) <doi:10.1016/j.jeconom.2014.09.013>. Two variants are provided: the basic t-REC test assuming iid errors, and the robust t-RREC test that accounts for serial correlation, cross-sectional dependence, and heteroskedasticity via defactoring and BIC-selected lag augmentation. Both tests have a standard normal null distribution requiring no mean or variance correction. The panel must be strongly balanced.

Getting started

Package details

AuthorMuhammad Alkhalaf [aut, cre, cph] (ORCID: <https://orcid.org/0009-0002-2677-9246>)
MaintainerMuhammad Alkhalaf <muhammedalkhalaf@gmail.com>
LicenseGPL-3
Version1.0.0
URL https://github.com/muhammedalkhalaf/xtrec
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("xtrec")

Try the xtrec package in your browser

Any scripts or data that you put into this service are public.

xtrec documentation built on March 29, 2026, 5:07 p.m.