Using steady state values in model block

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Using steady state values in model block

Postby edgar_frog » Wed Dec 17, 2014 3:57 pm

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.
edgar_frog
 
Posts: 4
Joined: Sun Jun 09, 2013 2:36 pm

Re: Using steady state values in model block

Postby jpfeifer » Wed Dec 17, 2014 4:13 pm

Use the steady_state() operator (see the manual). But for this to work, Dynare needs to be able to find the steady state.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Using steady state values in model block

Postby edgar_frog » Wed Dec 17, 2014 4:17 pm

Perfect, thanks!
edgar_frog
 
Posts: 4
Joined: Sun Jun 09, 2013 2:36 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests