Files
OpenBB/website/content/sdk/reference/qa/unitroot.md
jose-donato 2e7eb4c9b6 New documentation website (#3526)
* fix(docs): added margin between sections

* feat: removed unused files; updated ga

* fix: juan stuff doesnt work

* fix: random fix

* moon at noon

* fix: update docusaurus config

* Update controller_doc_classes.py

* fix: temp fix

* fix: temp fix

* Update controller_doc_classes.py

* fix: remove old content

* fix: taggfix

* init

* fix: styling and moved file

* Update generate_terminal_markdown.py

* fix: removed unused images

* fix: port new files

* Update generate_sdk_markdown.py

* Update controller_doc_classes.py

Co-authored-by: teh_coderer <me@tehcoderer.com>
2022-11-22 16:47:03 +00:00

2.0 KiB
Vendored
Raw Blame History

title, description
title description
unitroot OpenBB SDK Function

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

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

Name Type Description Default Optional
data pd.DataFrame DataFrame of target variable None False
fuller_reg str Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order c True
kpss_reg str Type of regression for KPSS test. Can be ‘c’,’ct' c True

Returns

Type Description
pd.DataFrame Dataframe with results of ADF test and KPSS test

Prints table showing unit root test calculations

Source Code: [link]

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

Parameters

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

Returns

This function does not return anything