Compute Phillips' (1987) Za and Zt statistics for the null hypothesis that y has a unit root.
Za(y,p=1,v=15,ker_fun="parzen",aband=0,filter=0)
Estimate of the AR(1) coefficient.
Za statistic for the series under the null has a unit root. Reject the null hypothesis of a unit root if the test statistic < critical value.
Critical values of Za.
Zt statistic for the series under the null has a unit root. Reject the null hypothesis of a unit root if the test statistic < critical value.
Critical values of Zt.
The data of dependent variable in a regression.
Order of the time polynomial in the cointegrating regressio.
p =-1: No deterministic term in the cointegrating regression.
p = 0: For a constant term.
p = 1: For a constant term and trend. Default.
P > 2: For time polynomial.
Critical values are available for p within [1,5].
Number of autocovariance terms to compute the spectrum at frequency zero, default=15.
Set kernel function to one of the available kernels, default="parzen". See section details below.
Whether to activate the automatic bandwidth selection.
aband=1. To activate.
aband=0. Do not activate.The default.
Whether to use an AR(1) filter to compute the spectrum at frequency zero.
filter=1. To use.
filter=0. Do not use. The default.
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Ouliaris, S., J. Y. Park, and P. C. B. Phillips (1989) Testing for a Unit Root in the Presence of a Maintained Trend. Ch. 1 in Baldev Raj (ed.), Advances in Econometrics and Modelling. Netherlands: Kluwer Academic Publishers.
Phillips, P. C. B. (1987) Time Series Regression with a Unit Root. Econometrica, 55, 277-301.
data(macro)
y=macro[,1]
Za(y,p=1,v=10)
Run the code above in your browser using DataLab