Page 1 of 1
reading parameter values in dynare ++
Posted:
Fri Jan 21, 2011 9:50 pm
by jfr23
is it possible to force dynare ++ to read the value of the parameters from an external file?
thanks
Re: reading parameter values in dynare ++
Posted:
Sun Jan 23, 2011 8:19 pm
by MichelJuillard
No, it is not.
Best
Michel
Re: reading parameter values in dynare ++
Posted:
Thu Mar 27, 2014 12:24 pm
by Bene
Has this changed since 2011? I mean, can the .mod file deal with external functions BEFORE the model block? (I use Matlab)
You know, what happens is that often people has parameters whose values depend on the steady state (because we want to match long run empirical facts to calibrate the models!).
In my case, I implemented an .m file which computes the values of parameters jointly with the steady states and other deep parameters.
That's why it would be useful to have an "external_function" alike command to declare parameter values before the model block.
Anyway, you are doing a great job guys!
Best regards,
Benedetto
Re: reading parameter values in dynare ++
Posted:
Fri Mar 28, 2014 8:01 am
by jpfeifer
Sorry, but this is not possible. Most of the development energy goes to Dynare. Unless you want order>3, everything you say can be implemented in Dynare.
Re: reading parameter values in dynare ++
Posted:
Fri Mar 28, 2014 11:47 am
by Bene
Thanks Johannes, even though I'm actually refering to Dynare (I use the latest release 4.4.2 running in Matlab 2009a), and it stills does not read parameters given by an external function, neither using external_function('parms.m',2) nor [bet,sig]=parms.m
Re: reading parameter values in dynare ++
Posted:
Fri Mar 28, 2014 11:52 am
by jpfeifer
I would need a mod-file. What you can always do is use the verbatim-block.
- Code: Select all
verbatim;
[bet,sig]=parms;
set_param_value('betta',bet);
set_param_value('sigma',sig);
end;
But this is a dirty hack. The suggested way is to use a steady state file to set parameters. See e.g. the NK_baseline.mod in the examples folder