Files
OpenBB/website/content/api/common/qa/unitroot/_index.md
Colin Delahunty 8731fbd692 Auto Generate API Documentation (#2360)
* Started auto doc generation

* Created a markdown document

* Added test changed to md

* Created working version of new documentation

* Made requested changes

* Generate docs for all

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-09-20 19:15:54 +01:00

1.3 KiB
Vendored
Raw Blame History

common.qa.unitroot

To obtain charts, make sure to add chart=True as the last parameter

Get underlying data

###common.qa.unitroot(data: pandas.core.frame.DataFrame, fuller_reg: str = 'c', kpss_reg: str = 'c') -> pandas.core.frame.DataFrame

Calculate test statistics for unit roots

Parameters
----------
data : pd.DataFrame
    DataFrame of target variable
fuller_reg : str
    Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order
kpss_reg : str
    Type of regression for KPSS test.  Can be ‘c’,’ct'

Returns
-------
pd.DataFrame
    Dataframe with results of ADF test and KPSS test

Getting charts

###common.qa.unitroot(data: pandas.core.frame.DataFrame, target: str, fuller_reg: str = 'c', kpss_reg: str = 'c', export: str = '', chart=True)

Show unit root test calculations

Parameters
----------
data : pd.DataFrame
    DataFrame
target : str
    Column of data to look at
fuller_reg : str
    Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order
kpss_reg : str
    Type of regression for KPSS test. Can be ‘c’,’ct'
export : str
    Format for exporting data