NaN AND inf in my steady state

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 AND inf in my steady state

Postby aadegboye abiodun » Sun Nov 02, 2014 6:27 am

Dear Dynare helpers,

Kindly provide a guide. I have NaN and Inf in three equations out of 22.

error no print. I attach the codes for you to read.

thank you
Attachments
abiodungboye.mod
(5.63 KiB) Downloaded 132 times
aadegboye abiodun
 
Posts: 18
Joined: Sat Nov 01, 2014 9:05 pm

Re: NaN AND inf in my steady state

Postby jpfeifer » Sun Nov 02, 2014 11:13 am

The problem is equation 17
Code: Select all
1+(adebt/amp) = (adebt(-1)/api) + gove - atx;

amp and api are endogenous variables and consequently, not linear.
------------
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 AND inf in my steady state

Postby aadegboye abiodun » Mon Nov 03, 2014 7:53 am

Dear jpfeifer,
I appreciate your effort and time. just within half a day i got response to my question.

The suggestion worked. wIth one or two modifications the model ran. However the simulation result seems less meaningful. DO you suggest I change my parameter values ?
your guide and help is required. kindly provide suggestions.
aadegboye abiodun
 
Posts: 18
Joined: Sat Nov 01, 2014 9:05 pm

Re: NaN AND inf in my steady state

Postby jpfeifer » Mon Nov 03, 2014 1:16 pm

Sorry, but I don't know your model and your problem with the results. Parameters should be chosen to match some target (or estimated). If these targets are off, change the parameters accordingly. If the targets are not off, but there is something else strange, check the model for correctness or, if it is correct, modify the 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 AND inf in my steady state

Postby aadegboye abiodun » Tue Nov 04, 2014 6:38 am

Dear jpfeifer,

once again I appreciate youe effort and time. i herewith my model codes. just forme to be very certain, could you kindly mention one or two of the targets you mentioned that the parameters must agree with. for the results some graph could not be clearly identified while some appear not to be seen.
your guide would be helpful.
Attachments
aabiodungboy.model.mod
(5.73 KiB) Downloaded 121 times
aadegboye abiodun
 
Posts: 18
Joined: Sat Nov 01, 2014 9:05 pm

Re: NaN AND inf in my steady state

Postby jpfeifer » Tue Nov 04, 2014 11:09 am

For example, the discount factor is usually set to be consistent with a long-term interest rate. The openness parameter is sometimes set to a values consistent with the openness of the economy and so on. For autocorrelations and shock standard deviations, the target is often something like output and investment volatility.
------------
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 AND inf in my steady state

Postby aadegboye abiodun » Thu Nov 06, 2014 6:27 am

dear jpfeifer,
thank you for the effort and time once again my model can now run. I checked the correctness of my model and so far I have not figure out any mistake. However I have NaN in some of my theoretical moments of the endo variables while others have zeros in almost all. Also if the impulse-response graph does not return to steady state does it mean there are issues someone? if yes your sugestions would be welcome and helpful.

Once I ensure my model is okay I want to immediately take it data.

yours
aadegboye abiodun
 
Posts: 18
Joined: Sat Nov 01, 2014 9:05 pm

Re: NaN AND inf in my steady state

Postby jpfeifer » Thu Nov 06, 2014 7:40 am

All of this is explained by the presence of a unit root. In this case your IRFs will have permanent effects and the unconditional second moments for the non-stationary variables do not exist, i.e. are NaN. Check whether the unit root is a feature of your model. Search the forum for more on this. There is no universal 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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests

cron