Calling a matlab function in the model block

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.

Calling a matlab function in the model block

Postby sed » Thu Jan 14, 2010 1:18 pm

Hi everyone,
I have a question about the model block of dynare and whether (and if so how) you can call a matlab function here. Basically I need to evaluate a normal cdf and the point of evaluation is an endogenous variable.

Thanks a lot

Petr
sed
 
Posts: 1
Joined: Thu Jan 14, 2010 1:09 pm

Re: Calling a matlab function in the model block

Postby StephaneAdjemian » Mon Jan 18, 2010 9:43 am

Hi Petr,

It is not possible to call a matlab user defined function in the model block. The reason is that dynare 4.x computes the analytical derivates instead of numerical derivates (as in dynare 3.x). Consequently, Dynare does not know how to compute the derivate of a matlab user defined function. The next release of Dynare (version 4.2) will provide a way for the user to declare matlab functions and their derivates, so that it will be possible to use matlab functions in the model block.

However note that Dynare understands the keyword normcdf (see the manual).

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.


Return to Dynare help

Who is online

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