Hi everybody i’m trying to replicate this paper “The Effects of Oil Price Shocks in a New-Keynesian Framework with Capital Accumulation”, by referring to the math appendix. Transcribing all the equations, however, I get this error: “Substitution of exo lags: added 4 auxiliary variables and equations. ERROR: There are 38 equations but 25 endogenous variables!”

Now I made some changes and the error message is different indeed. What are the equations that I have not defined and that depend only on parameters? Thank you so much for your help and availability.

I too had assumed that the error could be in this part of the code, but I reported the steady state as it is defined in the math appendix, how do I fix it? Thanks again

Again, the steady state belong in a steady_state_model-block or should be a parameter definition via model-local variables, but not a separate equation.