help with a code

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.

help with a code

Postby fda » Sun Jul 12, 2015 7:58 am

Is there anybody who can help me please?I am trying to run the code I attach, and I get the following error message:
??? Error using ==> print_info at 36
The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function dgges:
info=15, n=15
Error in ==> check at 76
print_info(info, options.noprint);

Error in ==> calib1 at 504
oo_.dr.eigval = check(M_,options_,oo_);

Error in ==> dynare at 120
evalin('base',fname) ;
Attachments
calib1.mod
(6.19 KiB) Downloaded 134 times
fda
 
Posts: 12
Joined: Sun Jul 12, 2015 7:45 am

Re: help with a code

Postby jpfeifer » Sun Jul 12, 2015 8:06 am

Fix your model.
Code: Select all
(po/pd)
in equation 49 is clearly not linear. Similarly, in equation 47 you have
Code: Select all
pm/pd
.
------------
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: help with a code

Postby fda » Mon Jul 20, 2015 2:28 pm

Hello,
thanks the problem solve, but now I have another problem with the code.I've got the following error message
??? Error using ==> print_info at 52
One of the eigenvalues is close to 0/0 (the absolute value of numerator and denominator is smaller than 1e-6)

Error in ==> check at 76
print_info(info, options.noprint);

Error in ==> calib1 at 504
oo_.dr.eigval = check(M_,options_,oo_);

Error in ==> dynare at 120
evalin('base',fname) ;
How can I solve the problem?
Thanks
Attachments
calib1.mod
(6.28 KiB) Downloaded 136 times
fda
 
Posts: 12
Joined: Sun Jul 12, 2015 7:45 am

Re: help with a code

Postby jpfeifer » Tue Jul 21, 2015 9:27 am

Run model_diagnostics
Code: Select all
model_diagnostics(M_,options_,oo_)
to see the collinearity issue
Code: Select all
ODEL_DIAGNOSTICS:  The Jacobian of the static model is singular
MODEL_DIAGNOSTICS:  there is 7 colinear relationships between the variables and the equations
Relation 1
Colinear variables:
c       
lambada
pc     
w       
q       
pi     
rk     
m       
pcf     
mf     
e       
k       
i       
y       
v       
oy     
cn     
oc     
cd     
imc     
pd     
pcn     
pm     
id     
imi     
s       
t       
ta     
oi     
se     
yg     
im     
o       
x       
imcf   
imif   
tbal   
yo     
gbal   
yd     
yf     
if     
re     
Relation 2
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 3
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 4
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 5
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 6
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 7
Colinear variables:
pcf     
mf     
e       
t       
ta     
oi     
se     
x       
imcf   
imif   
tbal   
yo     
gbal   
yf     
if     
re     
Relation 1
Colinear equations
    32

Relation 2
Colinear equations
     1    36    53

Relation 3
Colinear equations
     6    11    12    13    16    17    18    30    31    33    34    35    38    39

Relation 4
Colinear equations
     6    11    12    13    16    17    18    30    31    33    34    35    38    39

Relation 5
Colinear equations
     6    11    12    13    16    17    18    30    31    33    34    35    38    39

Relation 6
Colinear equations
     6    11    12    13    16    17    18    30    31    33    34    35    38    39

Relation 7
Colinear equations
     6    11    12    13    16    17    18    30    31    33    34    35    38    39

MODEL_DIAGNOSTICS:  The presence of a singularity problem typically indicates that there is one
MODEL_DIAGNOSTICS:  redundant equation entered in the model block, while another non-redundant equation
MODEL_DIAGNOSTICS:  is missing. The problem often derives from Walras Law.
------------
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 7 guests