DPredict · Guide test 220
Choi panel unit root tests
Combine unit root p values through inverse normal or related transformations.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Panel unit-root tests — Across many units (countries, stores, firms), do the series have unit roots — or are some or all of them stationary?
In Panel unit-root tests, choose Test = Choi inverse normal Z and Pm.
Do it in CodeSplash Run this test on your own data, in Python or R.
Bench
Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.
Bench · Choi panel unit root tests
0: every unit has a unit root (H₀ of the unit-root tests).
Your data
Simulated with known truth8 series of length 40: 4 stationary (solid) and 4 with a unit root (dashed). Stationary units keep returning to their own level; random walks drift away.
If H₀ were true
- The reference: how Z varies across samples when H₀ is true (normal approximation).
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = < .001).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- ADF p-value of unit i
- normal quantile function
The verdict
Z = −3.93, p < .001
p ≤ α = .050: reject H₀
Choi's inverse-normal combination is usually the most reliable of the combination tests; it also assumes independent units.
- Statistic
- −3.928
- p-value
- 0.0000
Choi panel unit root tests on 8 series of length 40, 4 stationary: Z = −3.93, p < .001. The p-value is below α = .050, so the data are hard to reconcile with H₀.
Question and hypotheses
H0: all panel units have unit roots.
Assumptions
A panel with explicitly modeled individual deterministic terms and sufficient time observations. First-generation panel unit-root tests generally assume cross-sectional independence; lag lengths and balance conventions matter.
Formula
Parameters and notation
pi are individual unit-root p values. Choi also proposed standardized inverse-chi-square and inverse-logit combinations; the displayed inverse-normal form rejects for negative Z.
Structure of the method
Compute individual unit-root p values and apply the selected Choi transformation before aggregation. For the inverse-normal form, sum inverse-normal transformed p values and divide by the square root of the unit count; sufficiently negative values provide evidence against the joint unit-root null under independence.
Estimated and nuisance parameters
The component ADF models estimate unit-specific deterministic and dynamic nuisance parameters. The aggregation stage estimates no shared autoregressive coefficient. The empirical distribution of component p values drives the result; exact-zero/one values create infinite normal transforms and require defensible numerical treatment.
Settings and design choices
Name inverse-normal, standardized inverse-chi-square, or inverse-logit explicitly. Choose deterministic terms, lag selection, and included units before testing. These combinations weight patterns of evidence differently, so selecting the most significant transformation after seeing outcomes requires an adjusted comparison strategy.
Fitting and adaptation
Adapt the underlying individual regressions and recompute their calibrated p values rather than adjusting the final statistic by hand. For cross-unit dependence, use a valid joint calibration or a documented dependence-aware method. The supplied code selects invnormal; its lower-tail sign convention should be retained when reporting results.
Sensitivity and robustness
Investigate extreme p values, cross-sectional shocks, heterogeneous sample sizes, and specification sensitivity. A few stationary units can drive rejection, and a nonrejection does not establish unit roots everywhere. Agreement among several dependent transformations is not independent replication of evidence.
How to use and calibrate
Use standard normal calibration under cross-sectional independence; identify the chosen Choi statistic.
Example application
Combine heterogeneous unit-level evidence for stationarity.
Interpretation and pitfalls
Watch out
Different Choi combinations have different tail conventions. Dependence requires an adjusted combination procedure.
What changed in edition 2
- New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.
Python and R
Columns are panel units and rows time. Cross-sectional independence and the chosen common/heterogeneous dynamics matter; Hadri reverses the null to stationarity. Choi is represented by the inverse-normal member.
Not run — Executed end to end through Rscript · needs Python standard library + Rscript; R packages: plm
# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
set.seed(2026)
X<-replicate(15,cumsum(rnorm(60)));print(plm::purtest(X,test="invnormal",exo="intercept",lags=1))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
text=True, capture_output=True)
print(result.stdout)
if result.stderr:
print(result.stderr)
result.check_returncode()
Validated — Executed successfully in the validation environment · needs plm
set.seed(2026)
X<-replicate(15,cumsum(rnorm(60)));print(plm::purtest(X,test="invnormal",exo="intercept",lags=1))
Output
Choi's Inverse Normal Unit-Root Test (ex. var.: Individual Intercepts) data: X z = -1.5734, p-value = 0.05781 alternative hypothesis: stationarity
Sources
- plm — plm · purtestAuthor documentation/source reviewed: plm 2.6-7.search.r-project.org
- purtestsearch.r-project.org
- Statistics guide v4 (historical):
- Python: Executed end to end through Rscript · R: Executed successfully in the validation environment
- Reference's record:
- Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.
From the CodeSplash statistics guide (v4), entry 220, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT220.