declaring var indexed to time and time variation(delta time)

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.

declaring var indexed to time and time variation(delta time)

Postby kval » Wed Nov 08, 2006 5:48 pm

hey guys,

first of all, sorry about this lame question but I'm totally noob :oops: ... so, my problem is:

how to declare an time and time variation (delta time) indexed variable, like

p(t,n)= A(n)+B(n)X(t)

which is a linear equation for pricing a zero-coupon (default free) bond at time "t" that pays 1 at time "t+n". the major problem is that when you advance to "t+1" "n" becomes "n-1"...

any sugestions?
kval
 
Posts: 3
Joined: Wed Nov 08, 2006 5:38 pm

Postby MichelJuillard » Fri Nov 10, 2006 2:42 pm

Unfortunately Dynare isn't meant to handle continuous time problems.

Best

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

Postby kval » Fri Nov 10, 2006 5:17 pm

actually the problem is in discrete time... sorry not have mentioned it before...
kval
 
Posts: 3
Joined: Wed Nov 08, 2006 5:38 pm

Postby MichelJuillard » Fri Nov 10, 2006 7:18 pm

Then you need as many P variables as you have maturities.

P1_t = A1+B1*X_t
P2_t = A2+B2*X_t

and so on. In Dynare you won't write the _t index. Of course, you need all the equilibrium conditions...

Best,

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

Postby kval » Fri Nov 10, 2006 11:04 pm

Ohhh... thx for the quick answer...
kval
 
Posts: 3
Joined: Wed Nov 08, 2006 5:38 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests