Estimation question

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.

Estimation question

Postby shr » Fri Feb 19, 2016 4:11 pm

Hi,

I am stuck between a rock and a hard place trying to estimate a log-linearized model. On the one hand, I am using fsolve to find my steady state, which means I would like to supply a steady state file instead of using pound operators inside the model block. At the same time, however, I use some of my steady state values in my model equations, e.g. in the linearized budget and resource constraints, which means Dynare needs them either as parameters or pound-expressions. What can I do to get around this problem? Thanks in advance for any help!
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm

Re: Estimation question

Postby jpfeifer » Sat Feb 20, 2016 7:36 am

I don't understand your problem. You can use a steady state file to update parameter values. The NK_baseline.mod in the Dynare examples folder does exactly that. You do not need model-local variables for that (pound operator)
------------
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: Estimation question

Postby shr » Sat Feb 20, 2016 4:39 pm

Sorry if my question was unclear. My problem is the following: Let's call output in my model yhat. Since the model is log-linearized, the steady state value of yhat is zero. But my market clearing equation reads "yhat = (Cs/Ys)*chat + (Is/Ys)*ihat", where Ys (which enters the model as a parameter) is not zero. If I could compute Ys on closed form, I would just use a pound-expression to make sure that Ys is updated in each step when I estimate my model (because Ys depends on some of the parameters I estimate). But since I can only find Ys using an fsolve-function, I cannot use a pound-expression. My question is then; if I write a steadystate-file in which I include not only the steady state values (which are zero), but also the parameter Ys (calling my fsolve function), will Ys then also be updated in each step, as it should? Thanks in advance!
shr
 
Posts: 10
Joined: Fri Aug 29, 2014 12:48 pm

Re: Estimation question

Postby jpfeifer » Mon Feb 22, 2016 5:26 am

As I said, please take a look at the NK_baseline.mod in the Dynare examples folder. It uses fsolve to solve for an endogenous variables and resets a parameter accordingly. That is exactly what you are trying to achieve.
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 15 guests