Skip to main content

unitroot

Calculate test statistics for unit roots

Source Code: [link]

openbb.qa.unitroot(data: pd.DataFrame, fuller_reg: str = "c", kpss_reg: str = "c")

Parameters

NameTypeDescriptionDefaultOptional
datapd.DataFrameDataFrame of target variableNoneFalse
fuller_regstrType of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend ordercTrue
kpss_regstrType of regression for KPSS test. Can be ‘c’,’ct'cTrue

Returns

TypeDescription
pd.DataFrameDataframe with results of ADF test and KPSS test