Issues with a non-stationary New Keynesian model
Posted: Tue Jan 17, 2017 7:19 pm
Dear all,
I am having difficulties trying to solve the model of Barsky & Sims (2012, AER, Information, Animal Spirits and the Meaning of Innovations to Consumer Confidence). Their code is available on MATLAB, but I made an effort to write it in a Dynare file.
There is one thing I am struggling with: their model has a technology process (log) which follows an unit root with drift process, the drift being the growth rate of technology (log), which itself follows an AR(1) process. The authors use the unit root equation “a = a(-1) + ga(-1) + ea” when solving the model by the Anderson & Moore algorithm (AIM) as well as the log of technology in other equations like “y = a – alpha*k(-1) + (1-alpha)*n”. Both MATLAB and Dynare solve the model and return the same results. My question is: should the model not be stationarized first?
I would really appreciate some light regarding this question.
Thank you all.
PS: This is just the part where they solve the full-information model, and I ignored the flexible price equations. Codes below. I tried writing a stationary version of it too, but for whatever reason it does not satisfy Blanchard-Khan conditions. I checked the math a few times but do not seem to find the error.
I am having difficulties trying to solve the model of Barsky & Sims (2012, AER, Information, Animal Spirits and the Meaning of Innovations to Consumer Confidence). Their code is available on MATLAB, but I made an effort to write it in a Dynare file.
There is one thing I am struggling with: their model has a technology process (log) which follows an unit root with drift process, the drift being the growth rate of technology (log), which itself follows an AR(1) process. The authors use the unit root equation “a = a(-1) + ga(-1) + ea” when solving the model by the Anderson & Moore algorithm (AIM) as well as the log of technology in other equations like “y = a – alpha*k(-1) + (1-alpha)*n”. Both MATLAB and Dynare solve the model and return the same results. My question is: should the model not be stationarized first?
I would really appreciate some light regarding this question.
Thank you all.
PS: This is just the part where they solve the full-information model, and I ignored the flexible price equations. Codes below. I tried writing a stationary version of it too, but for whatever reason it does not satisfy Blanchard-Khan conditions. I checked the math a few times but do not seem to find the error.