Third-order derivatives with estimation command

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.

Third-order derivatives with estimation command

Postby amg » Fri Nov 04, 2011 9:48 am

Hi, In the current version of Dynare, the estimation is done based on a first order approximation. Why would you need a third order approximation for estimation ? If you need the third order derivates you have to use the stoch_simul command instead.

Best, Stéphane.
amg
 
Posts: 7
Joined: Fri Oct 28, 2011 8:10 am

Re: Third-order derivatives with estimation command

Postby amg » Tue Nov 08, 2011 11:15 am

Hi,

E.g., to estimate time-varying risk premia, I'd need a third-order approximation.
I can provide Dynare with a suitable replacement for the linear estimation routines, but would hate to have to redo everything (i.e., if Dynare provides me with the third-order derivaitves within the estimation command that it is of course capable of producing, I can take care of everything else I need: I can retool DSGELikelihood.m etc. to my needs, but dynare_m.exe would be a little more involved). Starting with stoch_simul would require me to reprogram the entire estimation routines of Dynare as well as forcing--I believe--the rederivation of derivatives (i.e., _dynamic.m) at every parameter value iteration. Anyway, if you set order=2 in the estimation command, Dynare will provide the second order derivatives, setting order=3 still leaves you with only the second derivaitves of the policy function.
amg
 
Posts: 7
Joined: Fri Oct 28, 2011 8:10 am

Re: Third-order derivatives with estimation command

Postby StephaneAdjemian » Thu Nov 10, 2011 10:18 am

Hi,

I tried to use order=3 option in the estimation command for the fs2000 model, and I get the third order derivates (stored in the matrix v3)... I used dynare version 4.2.2.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Third-order derivatives with estimation command

Postby amg » Fri Nov 11, 2011 8:55 am

Thanks, got it... user error on my part.
amg
 
Posts: 7
Joined: Fri Oct 28, 2011 8:10 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests