Incomplete Beta 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.

Incomplete Beta function

Postby pguerron » Mon Apr 09, 2012 8:58 pm

Hi,

Is there a way to introduce an incomplete beta function in a model? I tried but got the error

ERROR: nke_capital_more.mod:193.9-22: To use an external function within the model block, you must first declare it via the external_function() statement.

Matlab calls the function with the statement betainc(c,alpha,beta) .

Thanks,

Pablo
pguerron
 
Posts: 6
Joined: Fri Oct 01, 2010 2:06 pm

Re: Incomplete Beta function

Postby bkjecn » Tue Apr 10, 2012 2:13 pm

Hi Pablo,
I produced the smallest example I could think of that included the betainc function. It is in the mod file. You have to use the external_function command (documented here:http://www.dynare.org/manual/index_13.html#index-external_005ffunction).
Best,
Ben
Attachments
include_betainc.mod
(285 Bytes) Downloaded 75 times
bkjecn
 
Posts: 35
Joined: Thu Oct 13, 2011 3:02 am

Re: Incomplete Beta function

Postby pguerron » Fri Apr 13, 2012 3:13 pm

Hi Ben,

Thanks for your response. Yes, the key is to use the external function command.

Pablo
pguerron
 
Posts: 6
Joined: Fri Oct 01, 2010 2:06 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 3 guests

cron