A question on expectations

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

A question on expectations

Postby tokhir » Mon Jan 21, 2008 7:47 pm

Suppose my equation involves an expression: E_t(x_{t+1})/E_t(y_{t+1}) as opposed to E_t (x_{t+1}/y_{t+1}). Both expressions would be entered identially in a dynare code as (x_{t+1}/y_{t+1}).

Does Dynare allow to differentiate where to place the expectation sign?

Thanks!
tokhir
 
Posts: 7
Joined: Wed Sep 20, 2006 6:01 pm

Postby MichelJuillard » Tue Jan 22, 2008 2:50 pm

Introduce two additional auxiliary variables Ex and Ey
Code: Select all
Ex = x(+1);
Ey = y(+1);

then E_t(x_{t+1})/E_t(y_{t+1}) is Ex/Ey

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby tokhir » Tue Jan 22, 2008 2:59 pm

Thanks a lot for your help!
tokhir
 
Posts: 7
Joined: Wed Sep 20, 2006 6:01 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests