Almost running

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.

Almost running

Postby 15291057 » Sat May 18, 2013 5:10 pm

I get the following error message from Dynare

"Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 6.644063e-28.
> In dyn_first_order_solver at 217
In stochastic_solvers at 172
In resol at 118
In stoch_simul at 76
In code at 278
In dynare at 120"

The rank condition is however verified. What is this and how do I solve it!! Thanx.
I attach the mod file
Attachments
Code.mod
(4.56 KiB) Downloaded 213 times
15291057
 
Posts: 3
Joined: Wed May 08, 2013 9:27 pm

Re: Almost running

Postby fabiover » Tue May 21, 2013 2:23 pm

Hi,

the model is not in (log-)linear form (while you stated that is it: model (linear) )

for instance, you have K = K(-1)*(1-delta) + I, this is the capital accumulation equation in levels

the model runs with Dynare 4.3.0 but it says that "All endogenous are constant or non stationary, not displaying correlations and auto-correlations"
Fabio Verona
Research Economist
Monetary Policy and Research Department
BANK OF FINLAND
Snellmaninaukio, Helsinki
PO Box 160, FI-00101 HELSINKI, FINLAND
phone +358 10 831 2464
www.bof.fi
http://fabioverona.rvsteam.net/
fabiover
 
Posts: 9
Joined: Wed Sep 26, 2012 10:10 am
Location: Helsinki

Re: Matrix is close to singular or badly scaled

Postby selima » Fri Mar 28, 2014 1:54 pm

I just want to ask a general question about the message error

Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 9.966866e-017.
> In csolve at 90
In dynare_solve at 166
In evaluate_steady_state at 66
In steady_ at 54
In steady at 81
In essaifiscal at 2014
In dynare at 174

I have obtained this error message but after it I obtain the
STEADY-STATE RESULTS, the Residuals of the static equations( which are0),The rank condition is verified ;the MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS,the
POLICY AND TRANSITION FUNCTIONS,the THEORETICAL MOMENTS,the variance decomposition and matrix of correlation. Can the result obtained be correct after this error message? thank you for answering me
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Almost running

Postby jpfeifer » Fri Mar 28, 2014 2:12 pm

Unless you have very good reasons to trust your results (so that the error message is just do to numerical accuracy such as extreme non-linearities), this is a bad sign. What does model_diagnostics say?
------------
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: Almost running

Postby selima » Fri Apr 04, 2014 3:23 pm

Sorry for the late but model_diagnostics (M_,options_,oo_) say nothing... I think there is no error.
Thank you Jpfeifer
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Almost running

Postby jpfeifer » Fri Apr 04, 2014 4:46 pm

I looked over the message again. As it only refers to steady state computation, but not to the actual model solution, you can ignore it.
------------
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: Matrix is close to singular or badly scaled

Postby selima » Fri May 01, 2015 6:27 pm

Dear Jpfeifer
concerninng the problem that I face with the oscillating IRF , I don't find solution even without the budget constraint and changing the fiscal rule modelisation of government spending and taxe as well as the data .

I change the model .I now work with the one of (Gali and Monacelli ,2005; Monacelli ,2005 ; Justiniano and Preston,2010) with some modifications.
In fact I face this message :

Matrix is close to singular or badly scaled
.Results may be innacuuate


..Is it a bug ? should I change the version? I am working on 4.4.3
.please help me ...this is my last code to finish my thesis..
Attachments
data6.m
(13.09 KiB) Downloaded 83 times
article2modif.mod
(10.64 KiB) Downloaded 96 times
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: Almost running

Postby selima » Fri May 01, 2015 7:04 pm

??? Error using ==> chol
Matrix must be positive definite.
I obtain this error message :

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

Error in ==> dynare_estimation_1 at 437
[xparam1,PostVar,Scale,PostMean] = ...

Error in ==> dynare_estimation at 89
dynare_estimation_1(var_list,dname);

Error in ==> article2modif at 520
dynare_estimation(var_list_);

Error in ==> dynare at 180
evalin('base',fname) ;
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 1 guest