@jpfeifer I have a conceptual question. When we refer to a variable as endogenous variable in a dsge model, does it have to be either a control variable or a state variable with respect to which we optimise. For example we have output which is expressed as a function of capital and labor. We never optimise wrt output but output is an endogenous variable in the model.
Best
Steve