Dear Prof. Pfeifer,
Many thanks for your reply. I am still experiencing further problems.
I have set the value of the parameter ‘phiP’ in the calibration mat file, instead of the mod file, because it is used in one of the m files (newsteady), so if I don’t do this I get an error.
I have also included the code for running the loop in the run.m file (lines 82-97). I changed the line in the code ‘info = stoch_simul(var_list_);’ to info = simul(var_list_); I am not sure whether this is correct. I did this because in the transition.mod file, I use the ‘simul’ command and not ‘stoch_simul’. When I run the code, I get the following error:
Undefined function or variable ‘var_list_’.
Error in run (line 91)
info = simul(var_list_);
Just to summarize my queries:
- Should I replace ‘stoch_simul(var_list_)’ with some other command in the code for running the loop, given that I am working with a perfect foresight model, and what should this be?
- How to I deal with the error I get when I run the run.m file telling me that the variable ‘var_list_’ is undefined.
Please find the updated codes attached.
Many thanks in advance.Forum loop2.zip (1.5 MB)