mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 07:51:49 +00:00
* add first iteration of content for Terminal Pro * Update index.md * Update dashboards.md * Update folders.md * Update grouping.md * Update report.md * Update templates.md * Update quick-start.md * Update index.md * Update index.md * Update home.md * Update news.md * Update index.md * Update index.md * Update index.md * Update data-provider.md * Update chat-with-widget.md * Update data-manipulation.md * Update forecasting.md * fix: images self closing tags * fix: only pro visitors can see pro * inter font * improve SEO content and restructuring * add new package for toggle on tutorials * move folder around * improve main page of each prod * small updates and improvements * fix logo above * small improvement in headtitle for portfolio funcs * fix typos from OpenAI's GPT-4 * fix _category_ json * remove generic SEO words * add script that generates SEO for documentation * add missing file * remove sdk warning message * fix links for andrew --------- Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2.6 KiB
Vendored
2.6 KiB
Vendored
title, description, keywords
| title | description | keywords | |||||
|---|---|---|---|---|---|---|---|
| granger | This is a documentation page for Granger causality command in econometrics. The command is used for analyzing the cause between two-time series. The page also provides usage examples and parameters detail. |
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
Show Granger causality between two timeseries
Usage
granger [-t Available time series] [-l LAGS] [-c CONFIDENCE]
Parameters
| Name | Description | Default | Optional | Choices |
|---|---|---|---|---|
| ts | Requires two time series, the first time series is assumed to be Granger-caused by the second time series. | None | True | None |
| lags | How many lags should be included | 3 | True | None |
| confidence | Set the confidence level | 0.05 | True | None |
Examples
2022 Jun 01, 06:35 (🦋) /econometrics/ $ load strikes
2022 Jun 01, 06:36 (🦋) /econometrics/ $ granger strikes.duration,strikes.iprod
Granger Causality Test [Y: strikes.duration | X: strikes.iprod | Lags: 3]
┏━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━┓
┃ ┃ F-test ┃ P-value ┃ Count ┃ Lags ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━┩
│ ssr_ftest │ 0.81 │ 0.49 │ 52.00 │ 3.00 │
├──────────────┼────────┼─────────┼───────┼──────┤
│ ssr_chi2test │ 2.75 │ 0.43 │ - │ 3 │
├──────────────┼────────┼─────────┼───────┼──────┤
│ lrtest │ 2.69 │ 0.44 │ - │ 3 │
├──────────────┼────────┼─────────┼───────┼──────┤
│ params_ftest │ 0.81 │ 0.49 │ 52.00 │ 3.00 │
└──────────────┴────────┴─────────┴───────┴──────┘
As the p-value of the F-test is 0.495, we can not reject the null hypothesis at the 0.05 confidence level.