Description Usage Arguments Value Examples
View source: R/JohansenCointegrationTest.R
Conducts the Johansen procedure on a given data set. The "trace" or "eigen" statistics are reported and the matrix of eigenvectors as well as the loading matrix.
1 | JohansenCointegrationTest(x, type = "trace", ecdet = "none", K = 2)
|
x |
Data matrix to be investigated for cointegration. |
type |
The test to be conducted, either ‘eigen’ or ‘trace’. |
ecdet |
Character, ‘none’ for no intercept in cointegration, ‘const’ for constant term in cointegration and ‘trend’ for trend variable in cointegration. |
K |
The lag order of the series (levels) in the VAR. |
A list
of Johansen Cointegration test results
1 2 3 4 | getFX("AUD/USD")
getFX("CAD/USD")
res <- JohansenCointegrationTest(merge(AUDUSD, CADUSD), type = "trace", ecdet = "none", K = 2)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.