# Question about the lagged expectation operators

**URL:** https://forum.dynare.org/t/question-about-the-lagged-expectation-operators/3422
**Category:** Dynare help (legacy posts)
**Created:** [4 October 2013 03:50 UTC](https://forum.dynare.org/t/question-about-the-lagged-expectation-operators/3422 "2013-10-04T03:50:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zsk3](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e5b9ba/32.png) [@zsk3](https://forum.dynare.org/u/zsk3)
#### Post date: [4 October 2013 03:50 UTC](https://forum.dynare.org/t/question-about-the-lagged-expectation-operators/3422/1 "2013-10-04T03:50:35Z")

</div>

Hi,

I am trying to simulate a simple general equilibrium model introduced by Wen (2002). My problem is the capital investment decisions must be made in advance for at least one period. So, the capital investment will not respond to demand shocks instantaneously. Some of the first order conditions have the lagged expectation operator and I tried to incorporate it to the code (first two equations). However, the Blanchard condition is not met. Without the operators there is a steady state solution and I also get the impulse responses, but that’s not what I want to solve.

Any help is highly appreciated. I attached my .mod file.

Thanks.  
[wen.mod](https://forum.dynare.org/uploads/default/original/2X/d/d4d6735b11f12aa43e7a92f095107ca4be31bd21.mod) (1.18 KB)

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [4 October 2013 06:13 UTC](https://forum.dynare.org/t/question-about-the-lagged-expectation-operators/3422/2 "2013-10-04T06:13:28Z")

</div>

Try using an auxiliary variable, see [[Expected value of a power](https://forum.dynare.org/t/expected-value-of-a-power/2200/1))

---

<div class="post-metadata">

### Author: ![zsk3](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e5b9ba/32.png) [@zsk3](https://forum.dynare.org/u/zsk3)
#### Post date: [7 October 2013 16:54 UTC](https://forum.dynare.org/t/question-about-the-lagged-expectation-operators/3422/3 "2013-10-07T16:54:12Z")

</div>

Hi,

Thank you very much for your prompt reply. I tried to add auxiliary variables, but it doesn’t seem to work. Probably I’m doing something wrong but I can’t find the problem.

Basically I want to have two equations:

E\_(t-1)[f(theta\_t, c\_t, theta\_(t+1), c\_(t+1), k\_(t+1), n\_(t+1))]=0;

and

E\_(t-1)[g(n\_t, theta\_t, c\_t, k\_t, n\_t)]=0;

and to handle this I defined z1=f(t+1) and used z1(-1)=0. Similarly for the second equation I defined z2=g(t+1) and used z2(-1)=0. But the rank condition is not verified.

Thank you for your help!  
[wen.mod](https://forum.dynare.org/uploads/default/original/2X/b/b605bf3487cd829b67100babdd3842a208e74caa.mod) (1.21 KB)
