computing the empirical 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.

computing the empirical moments

Postby georam11 » Tue Apr 18, 2017 9:54 am

Dear Prof Pfeifer,

According to dynare manual, Note that if simul_replic option is greater than 1, the additional series will not be used
for computing the empirical moments but will simply be saved in binary form to the file FILENAME_simul. Default: 1.

I have referred to the Hansen dynare file in your website but It helps to calculate the standard error and correlation of the variables. I would also like to get the expected value (mean) of the simulated series (by considering the additional series). Please could you let me know about how to compute the expected mean, in addition to correlation and standard deviations in the Hansen mod file?

Many Thanks
Ammu
georam11
 
Posts: 13
Joined: Tue Jun 07, 2016 7:02 am

Re: computing the empirical moments

Postby jpfeifer » Tue Apr 18, 2017 7:21 pm

First, you recover the data series using
Code: Select all
simulated_series_raw=get_simul_replications(M_,options_);

Then apply the
Code: Select all
mean
function of Matlab along the desired dimension of the array.
------------
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: Google [Bot] and 11 guests