Help with estimation output

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.

Help with estimation output

Postby costa » Fri Feb 27, 2015 1:37 am

Dear J Pfeifer,

I would like to request your help with the model I´m trying to estimate. My main concern is about the persistence of the government spending shock. As far as I know, whenever the estimation yields a shock with near unit root features, it could be due to model misspecification. For the government spending shock, I got a value of 0.993 for the posterior mean (I didn´t use government spending data in the estimation). Even though the estimation results in apparently reasonable IRF´s, the variance decomposition shows that the government spending shock is responsible for a great share of the variability of the forecast error of consumption and output, which seems strange for me. I you could just take a look. Thanks in advance.
Attachments
norges2.xls
(23.5 KiB) Downloaded 56 times
norges_data2.m
(2.22 KiB) Downloaded 41 times
model (2).mod
(10.19 KiB) Downloaded 49 times
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Help with estimation output

Postby jpfeifer » Sun Mar 01, 2015 11:56 am

Running the identification command returns

Testing prior mean

All parameters are identified in the model (rank of H).


WARNING !!!
The rank of J (moments) is deficient!


[xi_rf,xi_b] are PAIRWISE collinear (with tol = 1.e-10) !
[rho_rf,rho_b] are PAIRWISE collinear (with tol = 1.e-10) !

You definitely need to fix this.

Also, your data does not seem to be mean 0, but your model variables are. Finally, do not use the HP filter for estimation. See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5285
------------
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: Help with estimation output

Postby costa » Sun Mar 01, 2015 4:51 pm

Thank you. The data doesn´t have mean 0 because originally I was trying to estimate for a larger sample (in which the average is zero), but when I tried to estimate for a smaller sample I did´t notice that in this case the mean wouldn´t be zero anymore.
I have a question about you last sentence, about the HP filter. Many times I got confused. You say I shouldn´t use the standard HP filter, instead of the one-sided HP filter (remark 12 of your guide)? But generally people speak and use the standard HP filter, no ?
Or are you referring to the prefilter=1 option in the estimation command (which only demeans the data, if I understood correctly) or about the treatment of hours? Another question: if the data already have zero mean, does this prefilter=1 command make any difference ?
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Help with estimation output

Postby jpfeifer » Tue Mar 03, 2015 11:08 am

Your figure title says
'Data for estimation (hp filtered)'

I inferred from this that you stationarized your data using a two-sided HP filter. You shouldn't do that. You can use the two-sided HP filter for model evaluation (do the moments of the simulated model fit the data), but you shouldn't use it for data treatment prior to estimation.
If data and model are both mean 0, prefiltering does not do anything. Just drop it (there are some bugs related to prefiltering in 4.4.3)
------------
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: Help with estimation output

Postby costa » Mon Mar 09, 2015 2:45 am

Thank you a lot, very helpful. I have an additional question: how problematic is to get very persistent shocks. Because now Dynare indicate that all the parameters pass the identification exam, but I´m still getting persistent shocks (though slightly below 0.99). Even hypothetically assuming that I get shocks with persistence larger than 0.99, passing the identification command, would that be a source of concern? Thank you in advance.
costa
 
Posts: 47
Joined: Thu Nov 14, 2013 8:09 pm

Re: Help with estimation output

Postby jpfeifer » Mon Mar 09, 2015 12:09 pm

That depends. Sometimes close to unit roots are not a problem, sometimes they result in hugely implausibe IRFs. It all depends on whether the results look sensible.
------------
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 10 guests