NAN in exogenous process

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 in exogenous process

Postby richardgu26 » Thu Jul 25, 2013 7:21 am

Hi,

I have coded a model but it comes with NaN in exogenous processes. I used initval block, setting Xiss a very small value, so that any equations divided by it would not be NaN. But how am I supposed to do with the exogenous process? I have tried out shutting down all varexos, by setting them into zero at initval. But it fails.

Thanks in advance!

richardgu26
Attachments
test_steady.mod
(4.01 KiB) Downloaded 142 times
richardgu26
 
Posts: 13
Joined: Wed May 22, 2013 6:41 am

Re: NAN in exogenous process

Postby jpfeifer » Thu Jul 25, 2013 3:49 pm

First of all, your model is not linear, so don't put
Code: Select all
model (linear);

If you have
Code: Select all
log(g)=rhog*log(g(-1))+epsg;

then the steady state for g is 1. Put
Code: Select all
g=1

into initval. The same applies to the other exogenous variables.
------------
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 in exogenous process

Postby richardgu26 » Fri Jul 26, 2013 2:55 am

jpfeifer wrote:First of all, your model is not linear, so don't put
Code: Select all
model (linear);

If you have
Code: Select all
log(g)=rhog*log(g(-1))+epsg;

then the steady state for g is 1. Put
Code: Select all
g=1

into initval. The same applies to the other exogenous variables.

@jpfeifer

Thanks for your quick reply. Now the problems turn to other equations, and I think it should be fixed through parameter calibration. Well, I have a quick question for calibration. In my reference paper that I use to code this model, I have got some estimated parameters for calibration. However, some parameters with factors of 400, such as steady state inflation, growth rate and others. Does that means that I have to use quarter value to calibrate the parameters? To be specific, if the steady state inflation is 2% annualized, then the calibrated parameter in the model \pi should be 0.005. Besides, other parameters like steady state interest rate should follow the suite. Right?

Thanks again!
richardgu26
 
Posts: 13
Joined: Wed May 22, 2013 6:41 am

Re: NAN in exogenous process

Postby jpfeifer » Fri Jul 26, 2013 6:21 am

Yes, the model is calibrated in quarterly frequency, but the measured interest and inflation rates are annual. That's why you have to match the quarterly steady state inflation rate and the discount factor to quarterly values and need an observation equation to map to the data.
------------
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 in exogenous process

Postby richardgu26 » Fri Jul 26, 2013 7:47 am

jpfeifer wrote:Yes, the model is calibrated in quarterly frequency, but the measured interest and inflation rates are annual. That's why you have to match the quarterly steady state inflation rate and the discount factor to quarterly values and need an observation equation to map to the data.


@jpfeifer

Thanks a lot! Really helps!
richardgu26
 
Posts: 13
Joined: Wed May 22, 2013 6:41 am


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 2 guests