how to input the model by linear form?

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.

how to input the model by linear form?

Postby dean0504 » Mon Jan 04, 2010 8:27 am

Hi,guys.I m a freshman of dynare.
Could you please tell me that how can i input the model like "0=cbar(phat+chat)"? that "cbar" means the steady state and the "chat" and "phat" means differences from steady states.
Although the user guide says "repeating a letter for a variable means difference from steady state".,the matlab tells me "cc" is not defined when i input the model like "0=c*(pp+cc)".
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: how to input the model by linear form?

Postby SébastienVillemot » Mon Jan 04, 2010 5:29 pm

Hi,

You probably misunderstood the guide, there is no automatic way of constructing difference from steady state variables.

If you linearized your model, you simply need to declare as endogenous the variables representing differences from steady state. If you need to enter the steady state level of some variable in some equation (as your "cbar"), declare it as a parameter, and assign it the true value (possibly as a function of some deep model parameters).

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: how to input the model by linear form?

Postby dean0504 » Tue Jan 05, 2010 2:54 pm

hi , Sébastien Villemot.

Thank you for your attention.The aim i linearize the model is to find the steady state with the initial value assingned by zero.So does it mean that i have to caculate the steady state value by other means?
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: how to input the model by linear form?

Postby dean0504 » Tue Jan 05, 2010 3:22 pm

by the way ,I have tried your idea and gotten the steady state,but when i make a implus response functions,the matlab told me
??? Error using ==> print_info
MJDGGES returns the following error code10

Error in ==> stoch_simul at 44
print_info(info);

Error in ==> toy1 at 202
info = stoch_simul(var_list_);

Error in ==> dynare at 102
evalin('base',fname) ;

what does these codes mean?My code is
shocks;
var e_z=0.01;
end;
dean0504
 
Posts: 25
Joined: Mon Jan 04, 2010 8:10 am

Re: how to input the model by linear form?

Postby SébastienVillemot » Wed Jan 06, 2010 9:24 am

If you want to enter a linearized model into Dynare, then you need to compute the steady state by other means. This can be of course done by Dynare itself, using another MOD file, where you enter the model in nonlinear form. And don't forget that Dynare is also able to compute the first order approximation of the non-linear model, which is equal to the exact solution of the linearized model.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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