Hi,
I have estimated a dsge model with 2 order approximation (period=0) and use prunning to smooth Irfs as they were explosive and i was wondering what is the best aproach to check the fitness of the data produced from the model. Should i compare the theoritical moments with the ones from actual data or should i generate simulated series ( stoch simul command with period>0) and compare the empirical moments provided with the actual ones from the data?
Thanks
Michael
Ideally, both should give you the same answer. If you are worried about small sample issues, go for the simulated moments.
Thank you @jpfeifer. Just to clarify a couple of things:
- I am running the model without periods, to get the theortical moments, but when checking oo_. endosimul matrix for the simulated data no data are populated although the model has been solved and estimated. Any idea on what is going on?
- I do the same with periods>0 to get the simulated data. The thing is which simulated data i should use, meaning i get a bit different moments when simulating under a tecnholgy shock or under a cost shock. Is IT an issue that they are quite different
- Finally, the Log Hp filtered actual data seems to have a std of 0.05 (C and Y), while the simulated one (i.e under a tech shoch) have an std of 0.01. Is these difference considered material?
Thanks
Mike
thanks @jpfeifer.
Since each shock produces different moments, with what moments i should compare the moments from actual transformed data?
Regarding the 3rd point I have take logs and HP filtered both actual data and the simulated ones and had these difference. Any idea on that?
In the data, you have unconditional moments, i.e. with all types of shocks happening all the time. You should not try to compare this to conditional moments in the model, i.e. if only one type of shocks happens in the model.
Thanks @jpfeifer. I Will check it.
Hi again @jpfeifer, i tried to compare the actual transformed data with simulated data uncoditional moments (i. e under all shocks) and i have big variances.
Considering that, i would like to ask that since the model i have is expressed in logs (using exp()) instead of levels what exactly the simulated data express? They are also logs?
Regards
Mike
What exactly do you do. Please provide sample codes.
I compare for example the std from the actual data (xls file Euro, the last 2 columns for C and Y) with those produced from the (DSGE_test.mod (6.9 KB) model (transformed with HP filter as per the actual data) [Euro.xls|attachment] (upload://a40FeRLhh9TWv8dxoCkCaWystVQ.xls) (95.5 KB)Euro.xls (95.5 KB)
Dear @jpfeifer,
sorry for the impatience but have you been able to take a look on the issue?