Skip to main content

unitroot_test

Get Unit Root Test.

Augmented Dickey-Fuller test for unit root. Kwiatkowski-Phillips-Schmidt-Shin test for unit root.

obb.quantitative.unitroot_test(data: Union[list, dict, pd.DataFrame, List[pd.DataFrame], pd.Series, List[pd.Series], numpy.ndarray, Data, List[Data]], target: str, fuller_reg: Literal[str] = c, kpss_reg: Literal[str] = c)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]Time series data.NoneFalse
targetstrTarget column name.NoneFalse
fuller_regLiteral["c", "ct", "ctt", "nc", "c"]Regression type for ADF test.cTrue
kpss_regLiteral["c", "ct"]Regression type for KPSS test.cTrue

Returns​

Unit root tests summary.

On this page