statsmodels.tsa.stattools.grangercausalitytests
statsmodels.tsa.stattools.grangercausalitytests(x, maxlag, addconst=True, verbose=True) [source]
four tests for granger non causality of 2 timeseries all four tests give similar results params_ftest and ssr_ftest are equivalent based on F test which is identical to lmtest:grangertest in R Parameters:
x : array, 2d, (nobs,2) data for test whether the time series in the second column Granger causes the time series in the first column maxlag :