Page 1 of 1

zero variance decomposition

PostPosted: Fri Oct 14, 2016 2:35 pm
by earsmall
I modified the model proposed by Justiniano and Preston (2010) and have been trying to estimate the new model.
Actually, I wanted to do with mode_compute=4 but it was hard to find the initial posterior mode.
So, I use mode_compute=6.

Eventually, estimation was done. However, results of posterior variance decomposition is strange.
Mostly, they are zero...

I hope to have possible reasons for this.
I attached my mod file and data.

Re: zero variance decomposition

PostPosted: Sat Oct 15, 2016 10:02 am
by jpfeifer
Please upload everything including your mode-file as a zip-file

Re: zero variance decomposition

PostPosted: Sun Oct 16, 2016 10:11 am
by earsmall
I uploaded zip file which includes the mod file and data.

Thank you

Re: zero variance decomposition

PostPosted: Sun Oct 16, 2016 12:36 pm
by jpfeifer
You still did not provide your _mode.mat-file

Re: zero variance decomposition

PostPosted: Sun Oct 16, 2016 12:55 pm
by earsmall
Sorry
I uploaded the mode file as well

Re: zero variance decomposition

PostPosted: Sun Oct 16, 2016 5:06 pm
by jpfeifer
The mode-file does not match the mod-file:
Code: Select all
The posterior mode file fx_est_post_z_mode has been generated using another specification of the model or another model!
--> Estimated parameter eps_gg is not present in the loaded mode file.
--> Estimated parameter rho_gg is not present in the loaded mode file.

Re: zero variance decomposition

PostPosted: Mon Oct 17, 2016 2:50 pm
by earsmall
Sorry, I uploaded data, program (*.mod) and mode file (*_mode.mat).
Also, I uploaded the result (*.mat) in whch fevd mean of most variables are zero.

I think there might be a stationary issue. But in my opinion it has to be with some variables only
such as z, e, p, pf, ph. Not c or y.

Re: zero variance decomposition

PostPosted: Mon Oct 17, 2016 6:31 pm
by jpfeifer
I can confirm that the problem relates to nonstationary variables. For those variables, we are displaying 0 for all shocks, which is incorrect and should be NaN. We will fix this.

Re: zero variance decomposition

PostPosted: Tue Oct 18, 2016 2:37 am
by earsmall
I am wondering if you let me know which variable or part of the model incurs stationary problems.
In fact, c (consumption), pi (inflation) and y (domestic output) are definitely stationary.

Re: zero variance decomposition

PostPosted: Tue Oct 18, 2016 9:00 am
by jpfeifer
My guess is that
Code: Select all
// (7) Terms of Trade
s = pf - ph ;

causes this, because you have two non-stationary variables on the RHS and from there is spills over to the real side of the model.