Page 1 of 1

Loading initial values from MAT file

PostPosted: Tue Oct 20, 2015 10:59 pm
by cansever
Hi folks,
my question is that,
is it possible to LOAD initial values to .mod file from a .mat file ?

I have initialvalues.m containing y and c,
how can I load these to dynare instead of writing manually?

Best regards,
Can.

Re: Loading initial values from MAT file

PostPosted: Fri Oct 23, 2015 6:13 am
by jpfeifer
That is not so easy. The only way I can think of is defining new parameters that store these initial values. Before the model-block, you assign your saved values to the parameters

Code: Select all
load myfile;
y_start=mysavedvaluefory;

initval;
y=y_start;
end;

Re: Loading initial values from MAT file

PostPosted: Wed Dec 30, 2015 12:56 pm
by cansever
Thanks a lot!
Can