Dear all,
I need to put the "dynare *.mod" operation inside a loop. In each loop, I solve the model with different parameter values and simulate a panel of artificial data using the solution. Since nothing is changed in each loop except the parameters and I calculate the steady state with my own m-file, I am thinking to do the following to save computational time: compile the mod file once at the beginning to generate the corresponding m file. Afterwards, within each loop, I change the parameter values directly in M_.params and just run the m file in the loop. Can you let me know whether this procedure will give me the correct solutions?
Thank you for your help!
Erica