Skip to main content

cointegration

Show co-integration between two timeseries using the two step Engle-Granger test.

obb.econometrics.cointegration(data: Union[list, dict, pd.DataFrame, List[pd.DataFrame], pd.Series, List[pd.Series], numpy.ndarray, Data, List[Data]], columns: List[str], maxlag: PositiveInt = None)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]Input dataset.NoneFalse
columnsList[str]Data columns to check cointegrationNoneFalse
maxlagPositiveIntNumber of lags to use in the test.NoneTrue

Returns​

OBBject with the results being the score from the test.

On this page