Compare model with the data using theoretical moments

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.

Compare model with the data using theoretical moments

Postby Grant » Mon Jan 26, 2015 2:01 pm

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.
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Compare model with the data using theoretical moments

Postby jpfeifer » Mon Jan 26, 2015 4:26 pm

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.
------------
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: Compare model with the data using theoretical moments

Postby Grant » Tue Jan 27, 2015 3:18 am

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!
Grant
 
Posts: 95
Joined: Tue Jun 10, 2014 2:37 pm

Re: Compare model with the data using theoretical moments

Postby jpfeifer » Tue Jan 27, 2015 6:24 am

When your data are in first differences, you should compare them to first differences of the model variables (which are not HP-filtered).
------------
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: Compare model with the data using theoretical moments

Postby Nice » Wed Jul 08, 2015 7:51 pm

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!
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm

Re: Compare model with the data using theoretical moments

Postby jpfeifer » Thu Jul 09, 2015 5:50 am

You should take the log of per capital values. This is what your model variables are.
------------
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: Compare model with the data using theoretical moments

Postby Nice » Sat Jul 11, 2015 5:28 pm

Thank you.
Nice
 
Posts: 31
Joined: Fri Jul 11, 2014 5:16 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 3 guests

cron