Help with You did not declare endogenous variables after...

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.

Help with You did not declare endogenous variables after...

Postby htoma » Tue Dec 10, 2013 2:36 pm

I am quite new to Dynare. I've just been using it just for a few months by now.

This time I have a problem when trying to estimate the parameters for a model.

When I tell Dynare to estimate the parameters, it first shows me the figure with the priors and then I get the following message:
You did not declare endogenous variables after the estimation/calib_smoother command.

Afterwards, Dynare enters in a loop, showing me the same figure and the same message until I break the loop.

I would be really grateful if somebody told me which is the problem and how to solve it.
Attachments
forum.mod
(4.51 KiB) Downloaded 102 times
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm

Re: Help with You did not declare endogenous variables after

Postby jpfeifer » Tue Dec 10, 2013 2:47 pm

This is not an error, but rather a warning. You can ignore it and wait for the estimation to finish.
------------
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: Help with You did not declare endogenous variables after

Postby htoma » Tue Dec 10, 2013 4:44 pm

Thank you for your answer. I hope this works out well.
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm

Re: Help with You did not declare endogenous variables after

Postby htoma » Tue Dec 10, 2013 4:57 pm

I have been waiting for a while by now. But all I get is the following message and the priors figure. It just keeps opening new windows with the priors figure and showing me the same message. Right now I have like a hundred of those windows and a hundred of those messages.

Code: Select all
There are 4 eigenvalue(s) larger than 1 in modulus
for 4 forward-looking variable(s)
 
The rank condition is verified.
 
 
You did not declare endogenous variables after the estimation/calib_smoother command.


I hope it is just a waiting issue.
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm

Re: Help with You did not declare endogenous variables after

Postby jpfeifer » Tue Dec 10, 2013 5:01 pm

Sounds like you named your datafile the same way as your 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

Re: Help with You did not declare endogenous variables after

Postby htoma » Tue Dec 10, 2013 5:08 pm

Yes I did. Do I have to name them differently?
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm

Re: Help with You did not declare endogenous variables after

Postby jpfeifer » Tue Dec 10, 2013 5:10 pm

Yes, because otherwise Dynare will enter an infinite loop.
------------
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: Help with You did not declare endogenous variables after

Postby htoma » Tue Dec 10, 2013 5:14 pm

I got the mistake. The line 225 wasn't running because it had a % sign in front of it. Therefore it wasn't saving the datafile.

Nevertheless, now I am facing a new problem. I get the following message:

Code: Select all
There are complex values in the data! Probably  a wrong (log) transformation...


It seems I am going from one problem into another.
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm

Re: Help with You did not declare endogenous variables after

Postby anhn39 » Tue Dec 10, 2013 9:54 pm

Can you upload your data please?
anhn39
 
Posts: 12
Joined: Sat Dec 07, 2013 12:22 am

Re: Help with You did not declare endogenous variables after

Postby htoma » Wed Dec 11, 2013 4:29 pm

The mod file was made in such a way it will generate its own datafile. Although, there is a mistake in my code so the line with the command to generate the datafile won't run. To solve this mistake you have to erase the % symbol in line 225.

Currently I am correcting some other errors I have found in my code. I will upload the final mod file when it is ready.
htoma
 
Posts: 9
Joined: Tue Dec 10, 2013 2:25 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests