Hi,
I am estimating one parameter of a very simple DSGE model for different values of some of the other parameters by matching an observed forecast of a professional forecaster with the forecast of the model. The criterion function is the squared difference between the model forecast and the forecast of the professional forecaster, and look for a way to speed up the estimation routine. I am using fminsearch to minimize the criterion, and fminsearch executes dynare to solve the model at each iteration, so each time dynare has to parse the model file which slows down the computation. Is there a way around this? For instance, would it be possible to somehow call fminsearch within the .mod file, and the execute only stoch_simul and forecast? I found a similar problem in this forum using only stoch_simul, but not the forecast command. Based on the errors message I received, it seems I don’t know how to use the forecast command. Is it possible to call the dynare projection command outside the .mod in the same way as the stoch_simul command?
Many thanks for your help!
Best,
Waldyr