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) .
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).
include_betainc.mod (285 Bytes)
Thanks for your response. Yes, the key is to use the external function command.