Page 1 of 1

acceptance of steady state calculation

PostPosted: Sat Mar 10, 2007 3:55 pm
by micky
hi,

I am trying to solve a simple DSGE model, but have one big problem:

the calculation of the steady state in our model is outsourced to another file (model1_steadystate) and matlab/dynare is not willing to accept the "link" to this file:

??? Undefined function or variable "example1_steadystate".

Error in ==> example1 at 88
example1_steadystate;

Error in ==> dynare at 26
evalin('base',fname) ;

what can I do?

Thank you very much for your support!!

Greetz, micky

PostPosted: Sun Mar 11, 2007 1:20 am
by bigbigben
Please look at the example file in fs2000. in the file to calculate steadystate, you should name two output variables check and ys. you can set check=0 and ys is the variable for steady state. Also you may need to specify a "fake" input, ys_ as the input for this function.

I guess dynare will throw the initial guess in this file and output the steadystate based on your calculation. so, you may want to separate the "fake" input and the "true" input for your calculation.

thank you

PostPosted: Sun Mar 11, 2007 4:50 pm
by micky
Thanks a lot for the hints! They really pushed me forward!

micky