Evalin('base',fname) error


I’m trying to run a model explaining the net worth shock suffered by banks and how it affects the economy (Icelandic Banking Crisis).
However, After preprocessing is complete, I’m getting the following error and I cant seem to fix it-
"Error: File: abcd.m Line: 225 Column: 25
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII

Error in dynare (line 235)
evalin(‘base’,fname) ;"

I’ve attached the .mod file. Please let me know how I can fix it, and if there’s an error in the model equations.abcd.mod (1.3 KB)




I guess that on line 53 you should have

stderr 100*stderr_ef;

instead of

stderr 100*_ef;

It is not legal to have a variable name beginning with an underscore in matlab.

You probably have other problems in this mod file…



Hi Stephane,

I fixed the error with stderr_ef. However, I’m still getting the following errors.
PFA the updated .mod file. I’m trying to observe the shock coming from the bank’s net worth and how it affects the economy.

Error using print_info (line 90)
The steady state contains NaN or Inf

Error in steady (line 104)
print_info(info,options_.noprint, options_);

Error in abcd (line 214)

Error in dynare (line 235)
evalin(‘base’,fname) ;

Thank you!

abcd.mod (1.3 KB)


Your model has several mistakes. For example, the NKPC implies that p=0, but in another place, you divide by 'p, so it must not be 0. Similarly,

a = RHO*(-1) + u; %technology

should be

log(a) = RHO*log(a(-1)) + u; %technology