On the fit of the NK model

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.

On the fit of the NK model

Postby aiq » Sat Jan 17, 2015 9:35 am

Howdy!

I am trying to gauge the fit of the NK model by generating data, and comparing it to data sample used in the SW(2007) model.

I have the NK model (using the code available on this website nk.mod), which I run to get observations for inflation, output and interest rate (using the get_simul_replications.m code). Then I run a simple script (co.m) which uploads SW(2007) data, and the data generated by the nk model, and plots them. Then we can compare the two data sets. As you can see I get a terrible fit, which is surprising, as the data set is not even close to each other.

The data file usd contains the SW(2007) data for output,inflation and interest rate (transformed data used for estimation -dy,pin fobs,robs)

Can anyone comment? Appreciate it!
Attachments
usd.xls
(34 KiB) Downloaded 95 times
get_simul_replications.m
(1.5 KiB) Downloaded 71 times
nk.mod
(1.78 KiB) Downloaded 78 times
co.m
(439 Bytes) Downloaded 65 times
aiq
 
Posts: 20
Joined: Sun Oct 19, 2014 1:32 pm

Re: On the fit of the NK model

Postby jpfeifer » Sat Jan 17, 2015 5:18 pm

For output growth, they are pretty similar. For the interest and inflation rate I am not sure you are comparing the same objects (net vs. gross; demeaned vs. undemeaned)
------------
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: On the fit of the NK model

Postby aiq » Sat Jan 17, 2015 6:16 pm

As always thank you for the reply.

I thought of that, but since I am using the measurement equations(from SW(2007)) and comparing it with the transformed data used in estimation (again from SW(2007)), I thought I'd get a pretty good fit, and won't have to worry about transformations and all that. Is their something fundamentally wrong with my approach/results?
aiq
 
Posts: 20
Joined: Sun Oct 19, 2014 1:32 pm

Re: On the fit of the NK model

Postby jpfeifer » Sat Jan 17, 2015 6:31 pm

Using their observation equation to generate artificial observed variables does only work if the model variables used in the observation equation are the same. I haven't looked at the models to verify this.
------------
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: On the fit of the NK model

Postby aiq » Sun Jan 18, 2015 1:57 pm

Checked all that, still really bad fit...
aiq
 
Posts: 20
Joined: Sun Oct 19, 2014 1:32 pm

Re: On the fit of the NK model

Postby jpfeifer » Sun Jan 18, 2015 2:58 pm

Where did you get the calibration from?
------------
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: On the fit of the NK model

Postby aiq » Fri Oct 23, 2015 10:14 am

From smets and waters (2007)
aiq
 
Posts: 20
Joined: Sun Oct 19, 2014 1:32 pm

Re: On the fit of the NK model

Postby jpfeifer » Sat Oct 24, 2015 6:47 am

Then you need to check if their calibration is correct for your model. For example, Smets/Wouters have indexing in their model. Does yours as well?
------------
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: On the fit of the NK model

Postby aiq » Sun Oct 25, 2015 4:20 pm

Thanks, I think I figured it out. As always I am grateful for your opinions and comments!
aiq
 
Posts: 20
Joined: Sun Oct 19, 2014 1:32 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 3 guests