Page 1 of 1

loglinearized model

PostPosted: Wed Jan 12, 2011 6:41 pm
by jill1009
I tried one model which is not linearized, and dynare could find the steady state. But once I loglinearized the model, and keep everything else unchanged, steady state could not be found. Why that happened? Do I need to change the initial value for the loglinearized model? How to change it?
Thanks,

Re: loglinearized model

PostPosted: Wed Jan 12, 2011 6:45 pm
by jill1009
one more thing: if steady state value is needed in the loglinerized model, can i just use STEADY_STATE(var name) to get the steady state value?
Thanks,

Re: loglinearized model

PostPosted: Thu Jan 13, 2011 8:35 am
by jpfeifer
Your problem is that in a loglinearized model, the steady state of the endogenous variables is 0. Hence, you do not need to provide starting values (or set them explicitely to 0). However, you have equations like
Code: Select all
STEADY_STATE(c)*c+STEADY_STATE(i)*i=STEADY_STATE(y)*y;

where c is in logdeviations and has steady state 0, but STEADY_STATE(c) refers to the steady state of the nonlinear model, i.e. the steady state of c in not loglinearized form. Because Dynare does not know the nonlinear model when you supply it with the loglinearized version, the steady_state operator does not help you as it uses 0 as the steady state values of c,y and i which is incorrect.

Re: loglinearized model

PostPosted: Thu Jan 13, 2011 4:28 pm
by jill1009
Hi jpfeifer,
Thank you very much for you reply! Then, is there any method to deal with loglinearized model with steady state values of nonlinearized model as coefficients?

Re: loglinearized model

PostPosted: Thu Jan 13, 2011 4:53 pm
by jpfeifer
In case of your simple model, do it by hand, i.e. for example define a paramter y_ss and assign the steady state values from the non-linear model. By the way, if the non-linear model runs and finds the steady state, why use the log-linearized one?

Re: loglinearized model

PostPosted: Thu Jan 13, 2011 5:03 pm
by jill1009
Hi jpfeifer,
Thanks for your reply. Yes, for this simple case, use nonlinear model is enough. However, the model I use in my paper is much more complicated than this one, so I'm thinking of using the loglinearized version.

Re: loglinearized model

PostPosted: Tue May 31, 2011 9:33 pm
by Roy123
I join jill1009's question. In my paper I have the log-linearized version of the model and want to solve the model using these equations. What steps are needed in order to find out the steady state values (which I will use as initial valies) of the endogenous variables. Can anyone post an example with a DSGE model being solved using its log-linearized version and with an initial value and stready state block ? For Dynare to solve my steady state values must I specify an initial guess in the initial value block for each endogenous variable ?

Re: loglinearized model

PostPosted: Wed Jun 01, 2011 6:47 am
by jpfeifer
If your model is loglinear, all variables typically have a steady state of 0. Dynare always uses 0 as the initial value if not told otherwise. Hence, if you use
Code: Select all
model(linear);
[loglinear model equations]
end;
steady;
check;

it should work. You don't even need an initval-block in this case.

The tricky part discussed in this post is if you do not know the coefficients in front of the loglinearized variables, e.g. you have loglinearized budget-constraint
Code: Select all
c_ss*c +i_ss*i=y_ss*y;

where the c_ss, i_ss and y_ss are the steady state values of the original model. Finding the steady state for c,i and y in the loglinearized equation is easy. They are simply 0. But the problem now is with the parameters. If you know them, everything is fine.

Re: loglinearized model

PostPosted: Wed Jun 01, 2011 11:46 am
by Roy123
Thank you ! Indeed my problem is to find these steady state parameters from the non log linearized model. E.g. say i have an equation which looks like this:

mc(hat)=iL(ss)*iL(hat)+W(hat)-A(hat)

where x(hat) denotes the percentage deviations of x from its steady state and x(ss) denotes the steady state value (parameter) of x. I have also an equation for iL(ss) which is,

iL(ss)=(1/beta)-1+constant/(W/P)(ss)*0.03 (this is derived from the non-loglinearized model so it's not zero of course).

and W/P (ss) is the real wage in steady state, which is defined by another equation with another missing steady state variable...

I've got more steady state equations in the model and solving for the parameters by hand is complicated. Therefore, my questions are, what is the optimal way to find these steady state parameters and implement them in the log-linearized equations in the model block (as my log linearized equations depend on some of these steady state parameters ) ? do I still need to specify initial values for the endogenous variables ? should I use "fsolve" in Matlab or can Dynare do this for me ?

Thanks in advance