Hi,
I have a question in solving an optimal policy problem.
There are two steps. On the second stage, given the policy variable, say x, households and firms make their own optimization problem. Then backward, central bank takes households and firms' choice as a function of the policy variable, f(x), and set the optimal policy rule x* to maximize an objective.
My way to do it is I first set x( or its deviation from a certain level) as a shock and solve the second stage in dynare. I got the decision rules of households and firms in terms of state variables and shocks, including x. Then I wrote another mod file and use "ramsey policy" to find the optimal x where now x is an endogenous variable, along with those decision rules.
Unfortunately, the result of x* doesn't make any sense. I don't know what's wrong. Can anyone explain the potential mistakes of my method? What is the correct way to solve it? Cheers!