Ramsey Policy

You may be right that my model contains an economic problem (I cannot guarantee that). For this reason, I took the most well known open economy framework (Gali & Monacelli(2005)) and wrote the mod file for the non-linear version of the model (i.e. I do not log-linearise by hand). I also include capital and define the net exports in a slightly different way, but these changes make no real difference to the end result. There are no further frictions.

I also wrote the .tex file (see pdf below and .tex code at the very bottom) with all the equilibrium conditions and detailed derivations of the conditional steady state. I suspect that the problem may arise do the misspecification of the price level steady state, but I’m not sure (which is why I keep pestering you on this blog post to begin with :slight_smile: ).

In this case, the error message is different:

[code]
Warning: Rank deficient, rank = 0, tol = NaN.

In dyn_ramsey_static_dyn_ramsey_static_1 (line 152)
In dyn_ramsey_static>@(x)dyn_ramsey_static_1(x,M,options_,oo) (line 43)
In csolve (line 112)
In dyn_ramsey_static (line 58)
In evaluate_steady_state (line 120)
In resol (line 104)
In stoch_simul (line 83)
In ramsey_policy (line 25)
In GM_2005 (line 542)
In dynare (line 223)

evaluate_steady_state: The steady state computation for the Ramsey problem resulted in NaNs.
evaluate_steady_state: The steady state computation resulted in the following instrument values:
i 0.010050
evaluate_steady_state: The problem occured in the following equations:
Equation(s): 1, 33, 34,
Error using print_info (line 140)
Ramsey: The steady state computation resulted in NaN in the static first order conditions for optimal policy
Error in stoch_simul (line 94)
print_info(info, options_.noprint, options_);
Error in ramsey_policy (line 25)
info = stoch_simul(var_list);
Error in GM_2008 (line 542)
ramsey_policy(var_list_);
Error in dynare (line 223)
evalin(‘base’,fname) ; [/code]

P.S. Apologies for yet another question on this, but this is really bothering me. Hopefully we can figure this out and you can put this example on github, so that others in the future would not have to struggle as much as I am.

GM_2005.pdf (208 KB)
GM_2005.mod (13.5 KB)