cotrend: Consistent Cotrending Rank Selection

Description Usage Arguments Details Value Author(s) References Examples

View source: R/cotrend.R

Description

Package implements method to find cointegration and cotrending rank according to Guo and Shintani (2011).

Usage

1
2
3
4
5
cotrend(x, ...)
## Default S3 method:
cotrend(x,type=c("paired","joint"),CT="BIC",...)
## S3 method for class 'cotrend'
print(x,...)

Arguments

x

Matrix or xts object of dimension T x m. Where T is the number of time periods and m is the number of time series.

...

Additional parameters are type = "paired" (default) or "joint" which metric function CT="BIC" (default),"HQ" or "AIC".

type

Selects the method. "paired" is default and it find r1 and r2 independently. "joint" selects both r1 and r2 at the same time.

CT

Penalty functions elements. The default is to use "BIC" (Bayesian information criterion). User can also select "AIC" or "HQ". See Guo and Shintani (2011).

Details

For details on method see Guo and Shintani (2011). Most experiments find default method (paired,BIC) to have good performance. The probability of finding the correct rank is quite good for data sample as small as 50 observations.

Value

List with:

rank

Array with 2 elements. First element is the cointegration rank (r1) and the second is the week cotrending rank (r2).

m

Number of time series. Number of cols of input matrix.

T

Number of time periods (observations). Number of rows of input matrix.

eigenvalues

Eigenvalues from von Neumann matrix used in the algorithm.

vonNeumann

Multivarite ratio of the von Neumann ratio. A matrix of dimention m x m.

Author(s)

A. Christian Silva

References

Z-F. Guo and M. Shintani, "Consistent cotrending rank selection when both stochastic and nonlinear deterministic trends are present", Preprint, www.vanderbilt.edu/econ/faculty/Shintani/cotrend.pdf, version Feb 2011.

Examples

1
2
3
x <- example_eq3()
cotrend(x)
cotrend(x,type="joint")

cotrend documentation built on Oct. 30, 2019, 10:59 a.m.

Related to cotrend in cotrend...