Decimal precision

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.

Decimal precision

Postby Fab.valenti » Thu Dec 19, 2013 11:43 am

Dear all,

I have a, hopefully, pretty simple question. I have a parameter very close to zero (10^-6) and I'm trying to see how making it smaller and smaller affects the results of my model. However, changing its value to, for example, 10^-8, I obtain the same exact solution. This shouldn't be happening, so I suppose that this results from the way Dynare considers such values, i.e. that after "x" decimal digits my variable is approximated to zero. Is this the case? If yes, is there a way to go around it?

Thank you in advance.
Fab.valenti
 
Posts: 7
Joined: Fri Oct 14, 2011 1:44 pm

Re: Decimal precision

Postby jpfeifer » Thu Dec 19, 2013 12:22 pm

You must be more precise. Are you computing the steady state numerically and how to you judge that you get exactly the same solution?
------------
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: Decimal precision

Postby Fab.valenti » Thu Dec 19, 2013 1:20 pm

I'm giving dynare the exact steady state values (that I computed separately). The parameter in question doesn't affect the steady state of the model, but influences the results that are under oo_.mean, or, better, changing this parameter affects the results in oo_.mean up to a certain point: when I give it values that are lower than 10^-6 (keeping everything else constant) the effect disappears. Am I missing something?
Fab.valenti
 
Posts: 7
Joined: Fri Oct 14, 2011 1:44 pm

Re: Decimal precision

Postby jpfeifer » Fri Dec 27, 2013 8:58 am

In that case, I would need the mod-file.
------------
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: No registered users and 6 guests