gdp_ss really is the steady state associated with the variable gdp. You can use the steady_state operator for this:
- Code: Select all
gdp_hat=log(gdp)-log(steady_state(gdp));
Moreover, in New Keynesian models, the inflation rate is not endogenously determined but fixed to a particular value by the montary policy rule that sets the nominal interest rate. You need to set the monetary policy rule and the Euler equation in a consistent way to set target inflation to the desired level. Currently, you fix r_e to 1/beta, the real interest rate, implying that steady state inflation must be 0.
See the attached mod-file