Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forecasting #16

Open
nflp opened this issue Jan 28, 2023 · 5 comments
Open

Forecasting #16

nflp opened this issue Jan 28, 2023 · 5 comments

Comments

@nflp
Copy link

nflp commented Jan 28, 2023

Hi Gregor, many thanks for an amazing package and all the great work!

Is there a way to use the models we estimate for out-of-sample forecasting (maybe some of the underlying filtering packages support that)? I haven't been able to figure anything out.

@gboehl
Copy link
Owner

gboehl commented Jan 31, 2023

Hi, thanks for your interest in the package!

Yes, this is a quite straightforward application similar to the counterfactual analisis here. You take the last state from the smoothed series, and then draw shocks from the estimated shock distribution to simulate the model forwards.

I hope this helps.

@nflp
Copy link
Author

nflp commented May 13, 2023

Thanks!
Not sure how in practice I would implement that... Starting with the counterfactual example, I would modify the epd object to also include n-periods ahead that I want to forecast (basically, append zeroes to epd['resid]), and extend the mask object accordingly. Does this sound right?

@gboehl
Copy link
Owner

gboehl commented May 15, 2023

Yes, sounds very right. This should be it.

@nflp
Copy link
Author

nflp commented May 28, 2023

Thanks! I made a try here in case it's interesting for you to take a look https://github.com/nflp/dsge_forecasting/blob/main/DSGE%20forecasting.ipynb

@gboehl
Copy link
Owner

gboehl commented Nov 17, 2023

Very nice, this seems to be pretty much how it is done. Thanks for this!

Any particular reason why you needed to install pyyaml manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants