Run mod file - error message

Hi everyone,

I try to run my first own .mod file in dynare, but I get the following error message:
preprocessing failed

It would we great if someone could help me.

Thank you

ALR.mod (9.8 KB)

You cannot use ' within strings. If fixed numerous cases of this.
ALR.mod (9.8 KB)

Thank you for your help.

I’m still facing one problem. I receive the following error message:

Symbol omega3 is being treated as if it were a function (i.e., takes an argument that is not an integer)

It would great if you would help me again.

Thank you.

ALR_1.mod (10.1 KB)

The error message provides you with the information you need to debug this problem. It says

ERROR: ALR_1.mod: line 150, cols 94-158: Symbol omega3 is being treated as if it were a function (i.e., takes an argument that is not an integer).

Line 150 of your .mod file says

yhat = yhat(+1) - omega1*(rhat - pihat(+1)) + omega2*((mghat - eg) - (mghat(+1) - eg(+1))) + omega3((chihat + mchat - ec) - (chihat(+1) + mchat(+1) - ec(+1))) + omega1*(a - a(+1));

Looking at omega3, we see it is being treated as a function as opposed to a variable. To correct this, just add a *

Thank you, and sorry for askig such questions.

Hi everyone,

I’m still trying to run my first .mod file, but there are still some error messages:

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 ALR_1 (line 397)

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

It would be great if someone could help me.

Thank you.

ALR_1.mod (11.0 KB)

As Dynare says

Warning: Some of the parameters have no value (omega1, omega2, omega3, gamma1, gamma2, gamma3, gamma4, gamma5, gamma6, gamma7,
gamma8, varrho, xi_phi, rhor, rhoy, rhopi, rhomug, rhoa, rhoeg, rhoec, rhoz, rhoxi, rhonu, sigmaa, sigmaeg, sigmaec, sigmaz,
sigmaxi, sigmanu, sigmar, lny, lnc, lnmg, lnchi, lnmc, lnpi, lnr, lna, lneg, lnec, lnxi, lnnu, lnz, lnmug, y_ss, c_ss, mg_ss, xi_ss,
mc_ss, pi_ss, r_ss, phi_ss, psi, mug) when using steady. If these parameters are not initialized in a steadystate file or a
steady_state_model-block, Dynare may not be able to solve the model...