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
- Standard
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| data | List[Data] | Input dataset. | None | False |
| columns | List[str] | Data columns to check cointegration | None | False |
| maxlag | PositiveInt | Number of lags to use in the test. | None | True |
Returns
OBBject with the results being the score from the test.