model in levels

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.

model in levels

Postby Grant » Thu Apr 20, 2017 3:53 pm

Dear Prof. Pfeifer,

I try to simulate a small open economy model with a housing sector. Firstly, I log-linearized the model solutions by hand and the corresponding code runs well. But now I want to do policy analysis so that I write all the solution equations in levels and typed in dynare, I also derived the state state by hand. The only difference is the price dispersion and Phillips Curve show up in the model in levels. But dynare always encounters error as
"One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 1e-06!
If you believe that the model has a unique solution you can try to reduce the value of qz_zero_threshold.".

Here attached the code. Could you please help me take a look at the code and find the problem?

Your help is highly appreciated!

Grant
Attachments
code.mod
(9.89 KiB) Downloaded 62 times
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: model in levels

Postby jpfeifer » Fri Apr 21, 2017 7:58 am

Please use
Code: Select all
steady;

before
Code: Select all
check

to see that your steady state file does not solve the steady state. Thus, there must be a mistake in either the equations or the steady state computation.
------------
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: model in levels

Postby Grant » Fri Apr 21, 2017 3:38 pm

Dear Prof. Jpfeifer,

Thanks for your reply. Now I have fixed the problem. Dynare can run the code and get the result. But it cannot find the steady state when I use the command "model_diagnostics". My understanding is that there is some mistakes in the "steady state model" block, but dynare can find the steady state itself. Am I right? If I am wrong, how dynare can get the results without a correct steady state?

The modified code is attached. Your help is highly appreciated!
Attachments
code.mod
(9.87 KiB) Downloaded 71 times
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: model in levels

Postby jpfeifer » Sat Apr 22, 2017 8:37 am

Your steady_state_model-block is still incorrect. Resid says:

Code: Select all
Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 1.4732
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : -0.28035
Equation number 9 : 0
Equation number 10 : 0.00084055
Equation number 11 : 28.0347
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0.90871
Equation number 16 : 0.90909
Equation number 17 : -1.6698
Equation number 18 : 0
Equation number 19 : 0
Equation number 20 : 0
Equation number 21 : 0.90909
Equation number 22 : 0.90871
Equation number 23 : 0.90909
Equation number 24 : 0.90888
Equation number 25 : 0.90909
Equation number 26 : 0.90895
Equation number 27 : 0
Equation number 28 : 0
Equation number 29 : 0
Equation number 30 : 0.13292
Equation number 31 : 0
Equation number 32 : 0
Equation number 33 : 0
Equation number 34 : 0
Equation number 35 : 0
Equation number 36 : 0
Equation number 37 : 0
Equation number 38 : 0
Equation number 39 : 0
Equation number 40 : 0
Equation number 41 : 0


Please download the newest unstable version so that
Code: Select all
check;
does not accept wrong steady states.
------------
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: model in levels

Postby Grant » Sat Apr 22, 2017 1:53 pm

Dear Prof. Jpfeifer,

Many thanks for your reply. Do those non-zero residues represent the corresponding steady-state equations? If so, does it mean the corresponding steady-state equations are wrong?
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: model in levels

Postby jpfeifer » Mon Apr 24, 2017 6:26 am

The residuals correspond to the model equations. As I said
Thus, there must be a mistake in either the equations or the steady state computation

In any case, for the equations with residuals, the steady state equations do not match the dynamic equations in the mod-file.
------------
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 11 guests