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

Multi-step forecast error #84

Closed
azev77 opened this issue Feb 11, 2021 · 1 comment
Closed

Multi-step forecast error #84

azev77 opened this issue Feb 11, 2021 · 1 comment

Comments

@azev77
Copy link
Contributor

azev77 commented Feb 11, 2021

Multi-step forecasts (for returns etc) were implemented in #61
The following works

using ARCHModels;

BG96
am = fit(GARCH{1, 1}, BG96)
predict.(am, :volatility, 1:3)
predict.(am, :return, 1:3)

am = fit(ARCH{0}, BG96)
predict.(am, :volatility, 1:3)
predict.(am, :return, 1:3)

am = fit(ARCH{0}, BG96, meanspec=ARMA{12,0})
predict.(am, :volatility, 1:3)

I get the following errors:

julia> predict.(am, :return, 1:3)
ERROR: BoundsError: attempt to access 1974-element Array{Float64,1} at index [1975]
@azev77
Copy link
Contributor Author

azev77 commented Feb 11, 2021

@SebRollen's PR #83 fixes this

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

1 participant