Error message

Hello all,

does anyone understand the following error message?

“ERROR: filename.mod:346.10-14: Variable ‘name’ not allowed inside model declaration. Its scope is only outside model.”

I am putting the model log-linearised directly in dynare, the variable that is not allowed is some ratio at the steady-state. Thanks in advance!


Have you defined this ratio as a parameter? If not, do so. If it is a ratio at the steady state, it is constant and thus a parameter.

Thanks! Indeed that was the mistake, I discovered it myself. Can you help me with my most recent question? The one on "MJDGGES returns the following error code"
Thanks again!