Anticipated term

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.

Anticipated term

Postby anhn39 » Sat Dec 07, 2013 12:31 am

Could anyone please instruct me how can I write "E_{t-1} X_{t}" - which is the value of X anticipated in the previous period- in Dynare?
Thank you very much
Cheers,
A
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am

Re: Anticipated term

Postby jpfeifer » Sat Dec 07, 2013 12:33 pm

You should be able to do that be defining
Code: Select all
x_expect_at_t=x(+1);
x_expect_at_t_minus_1=x_expect_at_t(-1);

The first line defines x_expect_at_t as the conditional expectation. The second line lags that conditional expectation by one period.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Anticipated term

Postby anhn39 » Sat Dec 07, 2013 3:03 pm

Thanks jpfeifer.
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am

Re: Anticipated term

Postby lm280299 » Tue Sep 01, 2015 7:16 pm

May I know how to compute the conditional standard deviation? I'm working on the conditional standard deviation of a stochastic discount factor, beta*(c(+1)/c)^(-gamma). As the above logic, I should define another variable m=beta*(c(+1)/c)^(-gamma), and then the standard deviation of m is the conditional standard deviation of what I want, isn't it?

Besides, which result should I focus on if I also want to use the value of conditional expectation in the HJ bound, the mean or the steady state of m?
lm280299
 
Posts: 25
Joined: Thu Feb 06, 2014 5:58 pm

Re: Anticipated term

Postby jpfeifer » Wed Sep 02, 2015 6:23 am

You could do it as documented here: http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=6142 but you need to be aware of the limits of this approach.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 2 guests

cron