using compute_mode=6 still get 'Error using chol Matrix must

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.

using compute_mode=6 still get 'Error using chol Matrix must

Postby Jesse » Sun Mar 13, 2016 11:58 am

Hi,
In my new mod file which is very different from my last mode file, please refer to the attachment of my new mod file. i run dynare and chose the estimation compute_mode=6, dynare begins to calculate for a while, but ends up with the following messages:
Error using chol
Matrix must be positive definite.

Error in gmhmaxlik (line 197)
dd = transpose(chol(CovJump));

Error in dynare_estimation_1 (line 437)
[xparam1,PostVar,Scale,PostMean] = ...

Error in dynare_estimation (line 89)
dynare_estimation_1(var_list,dname);

Error in Thesis32 (line 769)
dynare_estimation(var_list_);

Error in dynare (line 180)
evalin('base',fname) ;
I have searched all the relevant answers in Dynare forum, and try to follow these advices, however, i still cannot run my model without the above errors, could you please give me some advicnes? i have applied 'model_diagnostics(M_,options_,oo_)', and the result indicates collinearity among the equations which specify the evolution of exogenous shocks, is it because i have too many exogenous shocks equations?
Could anyone give me some help?
in my uni, no one can help me with this, I really need some kind people who can give me some guidance.
Thank you very much!
Jesse
Attachments
Thesis32 - Copy.mod
(29.17 KiB) Downloaded 59 times
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia

Re: using compute_mode=6 still get 'Error using chol Matrix

Postby jpfeifer » Sun Mar 13, 2016 12:01 pm

The data file is missing. Also, please provide the mode_check plots.
------------
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: using compute_mode=6 still get 'Error using chol Matrix

Postby Jesse » Sun Mar 13, 2016 12:09 pm

jpfeifer wrote:The data file is missing. Also, please provide the mode_check plots.

Hi Johannes,
The attachment is data file, thank you very much for your kind guidance and looking forward to hearing from you.
only zip file is allowed, but no mat file. i have compressed mat file into zip file.
when i run model_diagnostics(M_,options_,oo_) , i have the following,
...
Relation 1
Colinear equations
2

Relation 2
Colinear equations
57 59 62 63 65 66

Relation 3
Colinear equations
54 56 57 62 63 64 65 66

Relation 4
Colinear equations
54 57 59 62 63 64 65 66

Relation 5
Colinear equations
56 57 59 63 64 65 66

Relation 6
Colinear equations
54 57 59 62 63 64 65 66

Relation 7
Colinear equations
54 57 59 62 63 64 65 66

Relation 8
Colinear equations
54 56 57 58 59 64 65 66

Relation 9
Colinear equations
1

Relation 10
Colinear equations
54 58

Relation 11
Colinear equations
54 56 57 59 62 63 64 65 66

Relation 12
Colinear equations
54 56 57 58 59

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.
Kind regards,
Jesse
Attachments
australia_us_data11.zip
(6.46 KiB) Downloaded 57 times
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia

Re: using compute_mode=6 still get 'Error using chol Matrix

Postby jpfeifer » Sun Mar 13, 2016 3:04 pm

I think you forgot to take parameter dependencies into account, making several parameters not identified. This regularly leads to problems with the Hessian. See Remark 4 (Parameter dependence and the use of model-local variables) in Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.
------------
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: using compute_mode=6 still get 'Error using chol Matrix

Postby Jesse » Sun Apr 03, 2016 3:15 pm

Thank you very much!
Jesse
 
Posts: 44
Joined: Sat Feb 13, 2016 3:34 pm
Location: Sydney, Australia


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 10 guests