Anticipated term
Posted:
Sat Dec 07, 2013 12:31 am
by anhn39
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
Re: Anticipated term
Posted:
Sat Dec 07, 2013 12:33 pm
by jpfeifer
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.
Re: Anticipated term
Posted:
Tue Sep 01, 2015 7:16 pm
by lm280299
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?
Re: Anticipated term
Posted:
Wed Sep 02, 2015 6:23 am
by jpfeifer
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.