Page 1 of 1

ask for help urgently

PostPosted: Fri Feb 15, 2013 3:50 am
by phoezy
Dear Professors,
i am a new user of dynare and i am writing my dissertation. i am glad to find such a wonderful tool as dynare for me. but i fail to finish it.
The problem is I just get the following messege from dynare and nothing.

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

Starting Dynare ...
Starting preprocessing of the model file ...
101 equation(s) found
Processing derivation ...
Processing Order 1... done
Processing outputs ...
Preprocessing completed.
Starting Matlab computing ...


SOLVE: maxit has been reached

SOLVE: maxit has been reached
Total computing time : 0h00m06s

Could you please help me ?
Because it tells me nothing than that I really don't know what's wrong with my model? Is there something wrong with the equations? or something wrong with the initvals?
I really need you help. thanks a lot !!

Regards

Re: ask for help urgently

PostPosted: Mon Feb 18, 2013 4:00 pm
by jpfeifer
Dynare is unable to find you steady state. Put
Code: Select all
resid(1);

before the steady command to see the residuals of your equations given your initial values. Try improving the initial values.

Re: ask for help urgently

PostPosted: Thu Feb 21, 2013 2:38 pm
by phoezy
Thank you very much for your suggestion.
I find the steady state of the model following your instructions.
And used them as initial values in the model. Finally I get all Irfs.

But I get a WARNING from the command window:

Warning: Aggregate variance and sum of variances by shocks differ by more than 0.01 %

And I have 104 endo variables in the model, but in the oo_. file there only 33 variables can be find in the oo_mean. and oo_var.
The other 71 variables are NaN.
I don't know where is the problem.
Could give further advises? I appreciate that very much.
Thanks a lot.

Cindy

Re: ask for help urgently

PostPosted: Thu Feb 21, 2013 2:44 pm
by phoezy
I did'nt use the steadystate.m file in my model.
I get all the initial value by pencil and put parameters' initial value vector before model; and the initial values vector of variables after model and simul after that.

Re: ask for help urgently

PostPosted: Fri Feb 22, 2013 7:44 am
by jpfeifer
Without a mod-file it's impossible to tell.

Re: ask for help urgently

PostPosted: Sun Feb 24, 2013 1:24 pm
by phoezy
Dear Professor,
Thank you very much for your kind help and suggests.
I've checked my model and mod-file many times and used the code you posted in the forums to help others diagnose the problem.
Finally, I found my mistakes and problems in the model. I fixed it and it works now.
Thanks again.

Sincerely

Best Regards

Re: ask for help urgently

PostPosted: Sun Jan 11, 2015 3:13 pm
by Oriana
Hi ,

After computing the steady state I have the following warning

Warning: Aggregate variance and sum of variances by shocks differ by more than 0.01 %
> In th_autocovariances at 180
In disp_th_moments at 37
In stoch_simul at 163
In nonlinearomega at 2033
In dynare at 180

From the literature I know

Variance decomposition is computed relative to the sum of the contribution of each shock. Normally, this is of course equal to aggregate variance, but if a model generates very large variances, it may happen that, due to numerical error, the two differ by a significant amount. Dynare issues a warning if the maximum relative difference between the sum of the contribution of each shock and aggregate variance is larger than 0.01%.

What I suppose to do know in order to get exo_simull and endo_simul results.
My apologies for lack of knowledge and endurance.

Please run the nonlinearomega.mod file from the folder below
https://www.dropbox.com/s/aqiwmi46m2c73 ... e.zip?dl=0

Re: ask for help urgently

PostPosted: Mon Jan 12, 2015 8:09 pm
by jpfeifer
What exactly is your question? This is a very large model where small inaccuracies can happen.

Re: ask for help urgently

PostPosted: Mon Jan 12, 2015 11:33 pm
by Oriana
Many thanks, indeed, for your help.
My question is:
What am I supposed to do in order to avoid in the future the
Warning: Aggregate variance and sum of variances by shocks differ by more than 0.01 % ?

Should I try different initial values for the parameters?

Re: ask for help urgently

PostPosted: Thu Jan 15, 2015 8:36 am
by jpfeifer
As I said, given the size of your model, you cannot really avoid this. It is a cost you incur for doing linear algebra at double precision on a computer.