Computes the IVX-Wald statistic of Kostakis, Magdalinos, and Stamatogiannis (2015) for testing predictability in a regression of returns on persistent predictors. The IVX approach is robust to the degree of persistence of the regressors (stationary, local-to-unity, or unit root).
Arguments
- y
Numeric vector of length
T; the dependent variable (e.g., returns).- X
A
T x rmatrix of predictor observations.- K
Integer; forecast horizon. Default
1.- M_n
Integer; bandwidth parameter for the long-run covariance estimator. Default
0(no correction). Usefloor(T^(1/3))as a rule of thumb.- beta
Numeric in \((0, 1)\); controls the rate of the IVX instrument. Values close to 1 yield best performance. Default
0.95.
Value
A list with class "ivx_wald" containing:
- statistic
The IVX-Wald test statistic.
- pvalue
P-value from the chi-squared distribution.
- coefficients
IVX coefficient estimates.
- K
Forecast horizon.
- n
Number of observations.
- r
Number of predictors.
Details
The IVX-Wald test constructs an endogenous instrument
\(\tilde{Z}_t\) by filtering the predictor increments through a
mildly integrated process with autoregressive root
\(R_{nz} = 1 - 1/n^\beta\). The resulting Wald statistic is
asymptotically chi-squared with r degrees of freedom,
regardless of the persistence of the predictors.
