NAN values in result

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.

NAN values in result

Postby tahmin » Fri Jan 10, 2014 6:51 am

Hi friends,
Finally I can run my model, but I have a new question from you:
The output of my model, some values marked with "NAN", why is that?

Thanks.
Attachments
Untitled2.m
(6.22 KiB) Downloaded 46 times
qwe.mod
(2.21 KiB) Downloaded 58 times
tahmin
 
Posts: 37
Joined: Wed Dec 04, 2013 9:48 pm

Re: NAN values in result

Postby jpfeifer » Fri Jan 10, 2014 9:53 am

Your timing is wrong. There are no forward looking variables in your model.
------------
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: NAN values in result

Postby tahmin » Sat Jan 11, 2014 5:59 am

Hi friend, Thanks for your answer.
Now I have 4 forward-looking in my model but NAN values appear in my result again. what's your suggest for solve this problem?
Thanks a lot
Attachments
qwe.mod
(2.23 KiB) Downloaded 52 times
tahmin
 
Posts: 37
Joined: Wed Dec 04, 2013 9:48 pm

Re: NAN values in result

Postby jpfeifer » Sat Jan 11, 2014 4:04 pm

Correct your model. The variables with NaN are variables that do not move at all during your simulations. Add e.g.
Code: Select all
rplot k;

after stoch_simul to see this. There must be a mistake in your model.
------------
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: Google [Bot] and 4 guests