Page 1 of 1

Using steady state values in model block

PostPosted: Wed Dec 17, 2014 3:57 pm
by edgar_frog
Hi everybody,
sorry if this question has come up before, but I was wondering if there is a way to use the values that dynare computes using the steady command in the model declaration.
To give an example, suppose I have an equation f(k,k_ss)=0 in my model, where k_ss is the steady state of k. I would like to call a function that automatically puts the steady state of k into this equation. For example:

model;
f(k,steady(k))=0;
end;

where steady is the function that I described. Computing the steady state beforehand is cumbersome in my model, so I'd like dynare to do the heavy lifting if possible.

Any comments would be greatly appreciated.

Re: Using steady state values in model block

PostPosted: Wed Dec 17, 2014 4:13 pm
by jpfeifer
Use the steady_state() operator (see the manual). But for this to work, Dynare needs to be able to find the steady state.

Re: Using steady state values in model block

PostPosted: Wed Dec 17, 2014 4:17 pm
by edgar_frog
Perfect, thanks!