About claiming external function

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.

About claiming external function

Postby stavrianos » Sat Dec 29, 2012 3:59 pm

Hi all, I am comparing impulse response with two different production functions in a simple RBC model. One is Cobb-Douglaswhile the other one involves in claiming external functions. More specifically, the functions are gamma function and gammainc function in matlab.

Since "gamma" and "gammainc" are not built functions in Dynare, I follow the link below to claim the external function before the \model" part in mod- le. However, the matlab window always shows that \ERROR: SecondDerivExternalFunctionNode::computeDerivative(). Not implemented".

Link to how to use external function in Dynare. It is almost the same as that documented in Page19 of the 99-page Dynare reference manual.
http://www.dynare.org/DynareWiki/ExternalFunctions.

FYI, I list the mod.file and the exact external functions I am using. I am very eager to your invaluable inputs on how to correctly claim external functions mentioned above. Thank you very much in advance.
Attachments
external.function.pdf
(72.27 KiB) Downloaded 79 times
external_fcn.mod
(880 Bytes) Downloaded 69 times
stavrianos
 
Posts: 1
Joined: Sat Dec 29, 2012 3:43 pm

Re: About claiming external function

Postby SébastienVillemot » Tue Jan 15, 2013 10:40 am

The problem is that Dynare does not implement 3rd derivatives of external functions. We hope to provide these in future versions. For the time being, you have to stick with "order=2".

Regards,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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