Dear prof. @jpfeifer , can you confirm that, in order to loop over parameters (for matching moments, finding optimal welfare, etc.),
- an external steadystate m file needs to be created (as shown by willi mutschler on youtube and in other posts);
- the external steadystate m can give an approximation of the steady states (it does not need to be precise because dynare will estimate the steady states anyways);
- after having invoked dynare in the first loop, you need to use
[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_)
in the rest of the loops, as shown for example in Parameter loop in Dynare 5.x - #3 by jpfeifer; - after that, you can retrieve the information needed using M_ and oo_
Sorry for the inconvenience and I thank you in advance!