ccr | R Documentation |
Computes Park's (1992) Canonical Cointegrating Regression estimator for cointegrated regression models, using OLS for the first stage regression.
ccr(y,x,type=c("const","trend","season","all"),
v=15,ker_fun="parzen",aband=0,filter=0)
y |
The data of dependent variable in a regression. |
x |
The data of independent variables in a regression. |
type |
The deterministic parts in the regression. |
v |
Number of autocovariance terms to compute the spectrum at frequency zero, default=15. |
ker_fun |
Set kernel function to one of the available kernels, default="parzen". See section |
aband |
Whether to activate the automatic bandwidth selection. |
filter |
Whether to use an AR(1) filter to compute the spectrum at frequency zero. |
1. Available kernels. Technical details are referred to Brillinger (1981,P.55)
"parzen"=Parzen kernel
"bartlett"=Bartlett kernel
"dchlet"= Dirichlet kernel
"mdchlet"= Modified Dirichlet kernel
"tukham"=Tukey-Hamming kernel
"tukhan"=Tukey-Hanning kernel
"cauchy"=Cauchy kernel
"bohman"=Bohman kernel
"reisz"=Riesz,Bochner kernel
"gw"= Gauss-Weierstrass kernel
"qs"= Andrews (1991) Quadratic-Spectral
These kernels are written for ccr procedures, technically different from those used in pp
and kpss
tests.
2. Andrews (1991) has developed data based (or automatic) bandwidth procedures for computing the spectrum. COINT
implements these procedures for the Parzen, Bartlette, Tukey-Hamming, and the Quadratic-Spectral kernels. When aband is active, COINT ignores the value you specify for the band-width parameter and automatically substitutes the data-based value.
3. The aim of the AR(1) filter is to flatten the spectrum of residual around the zero frequency, thereby making it easier to estimate the true spectrum by simple averaging of the periodogram.
coefTable |
Coefficients table. |
vcov |
Variance-covariance matrix for the parameter estimates. |
sigma |
Standard error of the residuals. |
rss |
Residual sum of squares. |
fit |
The fitted values, or conditional mean, of the regression. |
resid |
Estimated residuals. |
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Park, J. Y. (1992) Canonical Cointegrating Regressions. Econometrica, 60, 119-144.
data(macro)
y=macro[,1]
x=macro[,-1]
out=ccr(y,x,type=c("const","trend","season","all")[2],v=15,ker_fun="bartlett")
out$coefTable
out$vcov
tail(out$fit)
tail(out$resid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.