Is there anybody who can help me please?I am trying to run the code I attach,but 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=19, n=17

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

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

Error in ==> dynare at 120
evalin(‘base’,fname) ; calib.mod (3.81 KB)

Thanks a lot jpfeifer, I change my model,but now I have another error:
??? Error: File: calib3S.m Line: 451 Column: 5
Unbalanced or unexpected parenthesis or bracket.

Error in ==> dynare at 120
evalin(‘base’,fname) ; calib3S.mod (4.23 KB)

c=c(+1)-(1/sigma)*IR-(1/sigma)*(pc-pc(+1));
cannot be correct. IR is a paramter. With c and pc only showing up in differences, this equation is steady state is

Hello jpfeifer,
Thanks a lot for your help, I solve the problem, but now my model have another error:
??? Error using ==> print_info at 36
The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function
dgges: info=20, n=18

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

Error in ==> calib4 at 494
oo_.dr.eigval = check(M_,options_,oo_); calib4.mod (5.43 KB)

That is hard to say, but your model has a collinearity issue. Running

returns

[quote]MODEL_DIAGNOSTICS: The Jacobian of the static model is singular
MODEL_DIAGNOSTICS: there is 3 colinear relationships between the variables and the equations
Relation 1
Colinear variables:
tr
ta
bd
fas
rcb
Relation 2
Colinear variables:
tr
ta
bd
fas
rcb
Relation 3
Colinear variables:
tr
ta
bd
fas
rcb
Relation 1
Colinear equations
15 31 45 46
Relation 2
Colinear equations
15 31 45 46
Relation 3
Colinear equations
1 31 43 46
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.[/quote]