Looping Over Parameters - Problem in Steady State File
Posted: Sat Sep 05, 2015 10:53 pm
Hi,
I am trying to loop over parameter a value. I tried following this post, but it does not seem to work: viewtopic.php?f=1&t=4891
I am trying to loop over 'h' paramtere in NK_Baseline.mod as an example, but I get the error message:
Here is the outside loop I am calling:
Somehow it does not seem to recognize the value assignment I do when calling `set_param_value` (although I am able to call this function just fine).
Thanks.
I am trying to loop over parameter a value. I tried following this post, but it does not seem to work: viewtopic.php?f=1&t=4891
I am trying to loop over 'h' paramtere in NK_Baseline.mod as an example, but I get the error message:
- Code: Select all
Some of the parameters have no value (h, ...
Here is the outside loop I am calling:
- Code: Select all
params = 0:0.05:0.95;
for lpPar=1:length(params)
set_param_value('h',params(lpPar));
dynare NK_baseline noclearall;
[STUFF]
end
Somehow it does not seem to recognize the value assignment I do when calling `set_param_value` (although I am able to call this function just fine).
Thanks.