Learn R Programming

uroot (version 1.1)

CH.test: Canova-Hansen test

Description

Compute the Canova-Hansen test statistic for examining the null hypothesis of no unit roots at seasonal frequencies against the alternative of a unit root at either a single or a set of seasonal frequencies.

Usage

CH.test (label, frec, f0, DetTr, showcat)

Arguments

label
a list object with information about the series. The list consist of the following elements. vari, a ts object with the data of the series, s, the periodicity of the series (4, 12 or 1 for quarterly, monthly or anual data),
frec
a vector indicating the frequencies to analyse.
f0
a 0-1 (No-Yes) vector of length one indicating wether a lag of the dependent variable is included or not in the auxiliar regression.
DetTr
a logical argument. If TRUE a linear trend is included in the auxiliar regression.
showcat
how the results are showed and stored. If TRUE a brief explanation reports the results. If FALSE a list object stores the results.

Value

  • CH test statistic.

Details

Elements of frec contain a 0 if the season assigned to this element is not considered and contains a 1 for the frequencies that must be analysed. The position of each grequency in the vector is as follows: c(pi/2, pi) for quarterly series and c(pi/6, 5pi/6, pi/3, 2pi/3, pi/2, pi) for monthly series.

References

F. Canova and B.E. Hansen (1995), Are seasonal patterns constant over time? A test for seasonal stability. Journal of Business and Economic Statistics, 13, 237-252.

See Also

CHseas.test.

Examples

Run this code
## Analyse frequency pi, including a first order lag and but not a linear trend.
     data(AirPassengers)
     AirP <- list(vari=AirPassengers, s=12, t0=c(1949, 1), N=length(AirPassengers))
     CH.test(label=AirP, frec=c(0,0,0,0,0,1), f0=1, DetTr=FALSE, showcat=TRUE)

Run the code above in your browser using DataLab