Error in computing IRF (VAR model)

Hello everyone,
I cannot succeed to compute impulse-response function after checking the stability VAR(2) model I have juste computed. I always get the same error, which is the following :
Error using fn_compute_IRF (line 72)
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
I looked the other questions and answers and could not find anything, so I am sorry bothering you with this. I put below a screenshot of my VAR codes.
Best regards,
Thank you in advance for your help

回答(1 个)

Walter Roberson
Walter Roberson 2020-11-30

0 个投票

https://github.com/Vermandel/VAR-toolbox/blob/master/fn_compute_IRF.m
The code uses eval() which is not a good idea.
Your ynames cannot contain spaces.

类别

帮助中心File Exchange 中查找有关 Dynamic System Models 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by