optimlag: Search the lag order to maximize Johansen Statistics (1988)

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Search the lag order to maximize Johansen Statistics (1988) assuming there is only one common trend.

Usage

1
optimlag(data, k=10, ecdet= "none" )

Arguments

data

Data used to construct the cointegration system

k

maximum number of lags to search

ecdet

Character, the same argument used in ca.jo. In the package urca, ‘none’ is for no intercept in ECT (but there is constant in VECM, just outside ECT), ‘const’ is for constant term in ECT and ‘trend’ is for trend in ECT. See Details.

Details

Under the assumption that there is only one common trend, if a lag oder is chosen to maximize the Johansen statistics , then the estimated signle common trend will best fit the original series.

none’ is suggested to be chosen for ‘ecdet’, since currently this package only supports extrating common trend when intercept is included into VECM (but outside ECT).

Value

Olag.value

The maximized Johansen statistics (trace)

Olag

The lag order that maximizes Johansen statistics

list.lags

A list of all the possible lag orders and their corresponding Johansen Statistics. Note that the value when lag order is one is NA since lag order must bigger than 2.

Author(s)

Fan Yang

References

Johansen, S. (1988), Statistical Analysis of Cointegration Vectors, Journal of Economic Dynamics and Control, 12, 231–254.

See Also

optimlag-class

Examples

1
2
3
4
5
data(benchmark)
x = seq(1, 6689, by = 23)  ## monthly data
global = data.frame(benchmark[x, 2:4])

optimlag(global, 15, "none")

CommonTrend documentation built on May 2, 2019, 3:28 p.m.