A potential bug

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.

A potential bug

Postby rockyyao » Wed Jun 19, 2013 4:01 pm

Hi,

I use dynare to solve my model. I made a mistake on a coefficient in the model block, which is dependent on the steady state. I define all steady state value with x_bar. The mistake I made is that I forgot to write _bar, so I basically replaced the steady state variable with the log-deviation variable. (In this way, the model is no more linear). The strange thing is that Dynare still solves the model without an error message and reports some results. When I found the mistake and changed it. Dynare still solves the model and return some slightly different numerical results.

Can some one help me to figure out what is going on? Is it a bug or not?

I attach my model file with a function file needed for calculating the steady state. If you remove _bar from any n_bar in the first equation of the model block, you can see what I mean. I am using Dynare v 4.3.2.

Thanks

Rocky
Attachments
f8.m
(5.23 KiB) Downloaded 57 times
mymodel.mod
(4.92 KiB) Downloaded 52 times
rockyyao
 
Posts: 18
Joined: Mon Mar 10, 2008 4:37 pm

Re: A potential bug

Postby jpfeifer » Wed Jun 19, 2013 6:47 pm

If you tell Dynare the model is linear by using
Code: Select all
model(linear);

Dynare takes you at your word and does not check whether your model is truly linear. This is not a bug, but a mistake on your part. However, we are currently in the process of adding a diagnostical tool to detect such cases. Moreover, Dynare 4.4 will check whether the steady state in linear models is satisfied.
------------
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: A potential bug

Postby rockyyao » Thu Jun 20, 2013 7:42 am

Thanks for replying. I did define the model is linear by model (linear), nevertheless, Dynare solved the model with the mistake.

Ok, anyway thanks for your answer.
rockyyao
 
Posts: 18
Joined: Mon Mar 10, 2008 4:37 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests