I’m trying to replicate Iacoviello & Minetti’s 2006 two country RBC model with domestic and foreign lenders.
However, each time I try to run the code in matlab (i.e. dynare “filename”.mod) it returns the following error message:
Starting Dynare (version 4.4.1).
Starting preprocessing of the model file …
ERROR: Could not open file: “filename”.mod
Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in dynare (line 162)
fprintf(fid, ‘%s’, result);
I have never received this error message before even though I am follow the exact same steps in attempting to run the model. Any help would be greatly appreciated. Attached is my .mod file in case it is the source of the problem.
monday1.mod (9.23 KB)