coding expected variables

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.

coding expected variables

Postby Alexis » Thu Jul 09, 2009 1:07 pm

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
Alexis
 
Posts: 1
Joined: Thu Jul 09, 2009 12:56 pm

Re: coding expected variables

Postby otb » Fri Jul 10, 2009 1:30 pm

that seems right.
otb
 
Posts: 26
Joined: Mon Apr 07, 2008 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests