Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
northern-64bit committed May 3, 2023
1 parent 0784b29 commit 103b1a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openbb_terminal/econometrics/econometrics_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ def get_garch(
The name of the mean model
horizon: int
The horizon of the forecast
Examples
--------
>>> from openbb_terminal.sdk import openbb
>>> openbb.econometrics.garch(openbb.stocks.load("AAPL").pct_change()*100)
"""
model = arch_model(data.dropna(), vol="GARCH", p=p, o=o, q=q, mean=mean)
model_fit = model.fit(disp="off")
Expand Down

0 comments on commit 103b1a8

Please sign in to comment.