Page 1 of 1

Equation coefficients depending on parameters to estimate

PostPosted: Fri May 13, 2011 8:19 pm
by fpalomi
I'm trying to estimate a model where some of the coefficients in the model equations depend on the estimated parameters. For instance,
y=a+b*x,
where a and b are complicated functions of the parameters I want to estimate.
The coefficients are computed using a matlab function. I have tried to add the changing coefficients in the model section of the mod file using #, however, it does not recognize the matlab function and throws an error. Is there a way I can do this in Dynare?

Thanks

Re: Equation coefficients depending on parameters to estimat

PostPosted: Tue May 24, 2011 10:49 am
by SébastienVillemot
Use external functions, available since Dynare 4.2:

http://www.dynare.org/DynareWiki/ExternalFunctions