Adding growth rate of existing varible

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.

Adding growth rate of existing varible

Postby jkh » Sat Aug 29, 2015 5:54 am

I worked with Smet and Wouter (2007) code that I modified a little.

First, I ran the code without following "dlab" variable.
Then, I only added growth rate of labor like "dlab=lab-lab(-1)" into old code.

I thought this would not change existing results, because new variable doesnot seem to influence old ones in structure.

However, it changed posterior estimates a little bit and conditional variance decompostion results very much.

How can it be possible?

I wish some dynare users can help me.

Thank you in advance for reply.


** My code is attached below.
Attachments
sw_robustcheck_new_neo_dlab_n.mod
(6.16 KiB) Downloaded 54 times
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: Adding growth rate of existing varible

Postby jpfeifer » Sun Aug 30, 2015 2:51 pm

What you describe cannot be possible if your estimation has converged to the ergodic mean. Did you use sufficient draws and monitor convergence?
------------
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: Adding growth rate of existing varible

Postby jkh » Mon Aug 31, 2015 7:58 am

Thank you, Mr. Pfeifer.

However, by Brooks and Gelman plots, estimation results seem to converge, and the number of posterior subdraws is 1,000, which, I think, is sufficient number.

Still, this problem is mystery to me.
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: Adding growth rate of existing varible

Postby jpfeifer » Mon Aug 31, 2015 8:12 am

Then please provide two zip-files with the mod-file and the dataset to replicate the two different estimation cases.
------------
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: Adding growth rate of existing varible

Postby jkh » Mon Aug 31, 2015 1:14 pm

Thank you again for your kind interests, Mr. Pfeifer.

I uploade my codes and data files.

Baseline code is one that has no dlab variable, while modified code is one that has dlab variable.

In addition, I uploade conditional variance decompostion results under two different codes.

As I mentioned, two codes are nothing different except that one has no dlab variable, while the other has dlab variable.
Attachments
Conditional variance decomposition results.pdf
(161.68 KiB) Downloaded 75 times
modified code.zip
(6.09 KiB) Downloaded 51 times
baseline code.zip
(6.05 KiB) Downloaded 46 times
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: Adding growth rate of existing varible

Postby jpfeifer » Mon Aug 31, 2015 3:53 pm

This has to do with the random number generator used in the MCMC and thus signals a convergence issue. The problem here comes from: https://github.com/DynareTeam/dynare/issues/1048
It should go away with more draws.
------------
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: Adding growth rate of existing varible

Postby jkh » Wed Sep 02, 2015 8:24 am

Dear, Mr. Pfeifer.

I want to check this issue by using more posterior subdraws, which are used for computing irf, variance decompostion, etc.

Default subdraw number is 1,000 in dynare, so I added "sub_draws = 30000" in estimation option.

But, after run, the number of subdraws is still 1,000.

How can I increase the number of subdraws?

By the way, what is the logic of generating subdraws?
Last 1,000 draws or equally mixed 1,000 draws, or etc.?

Thank you always for your kind reply.
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: Adding growth rate of existing varible

Postby jpfeifer » Wed Sep 02, 2015 8:55 am

How do you figure that sub_draws is not correctly updated?
The draws are taken randomly from the posterior.
------------
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: Adding growth rate of existing varible

Postby jkh » Wed Sep 02, 2015 9:45 am

From "file name_posterior_draw1~3" files in metropolis folder, sum of the number of each file''s row is 1,000, even though I added "sub_draws = 30000" in estimation option.

Is it right way to figure out the number of sub_draws?
jkh
 
Posts: 20
Joined: Thu Jun 25, 2015 10:15 am

Re: Adding growth rate of existing varible

Postby jpfeifer » Thu Sep 03, 2015 7:02 pm

Actually yes, but I cannot replicate your issue. could you please try running the code in a different, empty folder and see what happens?
------------
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 2 guests

cron