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
Predict function VARX #12
Comments
Could you post the specifications that you passed to cv.BigVAR? |
where Y is a 45x144 matrix, and mn_prior is a vector of 30 values [0, 1]. The rest of the arguments are in their default values. Thank you so much! |
It appears that there was an issue with the Minnesota Prior component of the multi-step forecast. I just pushed an update that should fix it. |
How do I create forecasts for a VARX?
The model was created using the following code:
Y is a 226x15 matrix with 4 endogeneous and 11 exogeneous variable (i.e. monthly dummies). |
This issue should have been fixed in the latest development version. Let me know if it still persists or if you encounter other issues. I will submit the updated package to cran shortly. |
You're right. The error does no longer exist in development version. Thanks |
When I try to run predict with n.ahead >1 I get an error:
If I look at BigVARSupportFunctions.R at line 2257 there appears to be a misplaced g that is causing the error. |
Thanks, this has been fixed |
I am getting the same error as @kaijennissen when creating a model as follows
The matrix Y has the structure
The last row with predict gives the error
It might be that I am doing something wrong, but if that is the case I cant see what. |
Do you still encounter this issue in the github build? I will correct this issue in the cran version in the very near future. |
Hi! I tried building the package from source from the files here at github, works like a charm! Thanks! |
Hi -- I am not having the above issue with
Where I have 12 endogenous variables and 2 exogenous variables. Running this with |
Could you post a reproducible example (including your specification in constructModel)? I can't seem to replicate your error. |
I have a penalized VARX model after applying cv.BigVAR() function and I want to perform a 10 -step forecast but the function predict returns the following error: "Error in 2:nrow(Z) : argument of length 0".
I have, 30 endogenous variables and 15 exogenous variables so I am specifying:
predict(Model_results, n.ahead = 10, newxreg = exogenous_variables[1:10, 1:15])
There is no problem when I launch forecast with n.ahead = 1.
Any suggestion of what could be the problem?
Thank you so much!
The text was updated successfully, but these errors were encountered: