View source: R/GrangerCausalityTest.R
GrangerCausalityTest | R Documentation |
Granger Causality Test is a statistical hypothesis test for determining whether one time series is useful in forecasting another
GrangerCausalityTest(TimeSeries1, TimeSeries2, Order = 1)
TimeSeries1 |
[1:n] numerical vector |
TimeSeries2 |
[1:n] numerical vector |
Order |
Lags include into rauxiliary regression |
TimeSeries1
is assumed as the cause for TimeSeries2
. Function uses grangertest
and causality
.
List with
WaldTest |
a Wald test comparing the unrestricted model—in which y is explained by the lags (up to order order) of y and x—and the restricted model—in which y is only explained by the lags of y, see |
VARtest |
Computes the test statistics for Granger- and Instantaneous causality for a VAR(p), see |
Michael Thrun
Granger, C. W. J.: Investigating Causal Relations by Econometric Models and Cross-spectral Methods, Econometrica, 37 (3), pp. 424–438, doi:10.2307/1912791, 1969.
grangertest
, waldtest
, causality
#...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.