How to calculate the MOMENTS OF SIMULATED VARIABLES?

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.

How to calculate the MOMENTS OF SIMULATED VARIABLES?

Postby jack_ct » Sat Dec 26, 2015 8:49 am

Hello

I calculate the moment of IRF values
e.g. pih is a variable and eps_a is the only shock variable ,i input command in Matlab ,such as
Code: Select all
std(oo_.irfs.pih_eps_a)
and
Code: Select all
mean(oo_.irfs.pih_eps_a)

Why the results are not the same as the results displayed in the dynare output?

Thank you in advance.
jack_ct
 
Posts: 4
Joined: Sat Dec 26, 2015 8:26 am

Re: How to calculate the MOMENTS OF SIMULATED VARIABLES?

Postby jpfeifer » Sat Dec 26, 2015 10:10 am

Because moments are not compute from IRFs (one-time shocks), but from simulations with shock drawn for every period.
------------
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: How to calculate the MOMENTS OF SIMULATED VARIABLES?

Postby jack_ct » Sat Dec 26, 2015 12:34 pm

jpfeifer wrote:Because moments are not compute from IRFs (one-time shocks), but from simulations with shock drawn for every period.


i got it .Thank you ,professor Pfeifer
jack_ct
 
Posts: 4
Joined: Sat Dec 26, 2015 8:26 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 11 guests