Though this error seems to have been asked about many times I could not find an answer that applies to my situation. My .mod file runs cleanly through the estimation of a DSGE model and a bunch of graphs. But when it comes time to doing some counter factual simulations using this code:
%–Run simulations–
Base=simult_(y0,dr,ex_Base,iorder);
Supply=simult_(y0,dr,ex_Supply,iorder);
Demand=simult_(y0,dr,ex_Demand,iorder);
Labour=simult_(y0,dr,ex_Labour,iorder);
I get:
Not enough input arguments.
Error in simult_ (line 37)
iter = size(ex_,1);
The syntax seems fine and I have checked all of the inputs which also seem to be fine. I’ve also tried running it from an empty folder.
Any advice would be greatly appreciated