Loglinearized model

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,
ex5.mod (586 Bytes)
ex4.mod (558 Bytes)

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,

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

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© 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.

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?

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?

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.

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 ?

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

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

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.

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