I want to replicate the paper “news shocks and optimal simple rules” - 2010 ( Wohltmann & Winkler).
My problem is the loss function, which is
Loss = Var(πt − γπt−1) + αx Var(xt − δxt−1) (Page 9 Eq. 23)
The loss function contains lags. Dynare doesnt accept lags and leads and gives me always an error. I usually used a loss function of the form: 1/2*(pi^2+lambda*x^2)
Can u help me to solve this problem? How can I transform the loss function?
Thanks in advance