Page 1 of 1

Compare model with the data using theoretical moments

PostPosted: Mon Jan 26, 2015 2:01 pm
by Grant
Dear Jpfeifer,

After model estimation, I want to compare the model-based moments with those computed from the data. I use the "stoch_simul" command and get the theoretical moments. Since my model is linear (I have log-linearized the first order conditions by hand) and I also take log-difference and demean the data series in order to match the model, do I still need to use the "hp_filter" command in "stoch_simul"?

Moreover, since my data is also detrended and "log-linearized", I think I should use the transformed data rather the raw data to compute the moments? Am I right?

I am looking forward to your help. Thanks in advance.

Re: Compare model with the data using theoretical moments

PostPosted: Mon Jan 26, 2015 4:26 pm
by jpfeifer
You should usually treat your data and your model variables in the same way. Thus, if you HP-filter your data to detrend them, compare with HP-filtered model variables. Otherwise, you are comparing different frequencies. You could also use first differences for both. What is not advocated is comparing first differences of model variables to HP-filtered data.

Re: Compare model with the data using theoretical moments

PostPosted: Tue Jan 27, 2015 3:18 am
by Grant
Dear Jpfeifer,

Thanks for your reply. My understanding is that I should not use "hp_filter" in the "stoch_simul" command, because my model is linear (I use model(linear) block and the model variable represents percentage deviation from the steady state) and the data has already been taken first difference and demeaned. Am I right?

Thanks!

Re: Compare model with the data using theoretical moments

PostPosted: Tue Jan 27, 2015 6:24 am
by jpfeifer
When your data are in first differences, you should compare them to first differences of the model variables (which are not HP-filtered).

Re: Compare model with the data using theoretical moments

PostPosted: Wed Jul 08, 2015 7:51 pm
by Nice
Dear jpfeifer,

My model variables are which are per capita are in levels however in the model section I write them as "exp(c_h)" so that they are in log deviations. My data variables are in logs and are not per capita, according to the above post comparing data moments and theoretical moments are incorrect?

What is the best way to treat this? Should I just convert my data into per capita and not log it so that it directly comparable to the model variables?

Many Thanks!

Re: Compare model with the data using theoretical moments

PostPosted: Thu Jul 09, 2015 5:50 am
by jpfeifer
You should take the log of per capital values. This is what your model variables are.

Re: Compare model with the data using theoretical moments

PostPosted: Sat Jul 11, 2015 5:28 pm
by Nice
Thank you.