Page 1 of 1

coding expected variables

PostPosted: Thu Jul 09, 2009 1:07 pm
by Alexis
Dear all,

I am new to Dynare and I have a very simple question. I want to implement the formula:

A(t) = ( E_t[B(t+1)^x] ) ^ (1/x)

where x is a parameter and A and B two variables.

Is the following code correct :

C=B(+1)^x;
A=C^(1/x);

Thanks,
Alexis

Re: coding expected variables

PostPosted: Fri Jul 10, 2009 1:30 pm
by otb
that seems right.