Question: Saving simulated data?

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.

Question: Saving simulated data?

Postby kanimbla » Thu Mar 21, 2013 7:08 pm

Hi,

I use the 'save'-command after 'stoch_simul' in order to save the simulated data. I simulate the model for 50 periods, but for some reason the data are only stored for 20 periods. Is there a way to change the number of periods for which the simulated data are stored?

Best regards
kanimbla
 
Posts: 18
Joined: Sat Jan 14, 2012 8:55 am

Re: Question: Saving simulated data?

Postby jpfeifer » Thu Mar 21, 2013 9:01 pm

Could it by you are looking at the IRFs stored in the format variable_shock in the workspace? Those are 20 periods by default. To simulate data, use e.g.

Code: Select all
stoch_simul(order=1,periods=200,drop=100);


which simulates 200 data points, but drops the first 100 as burnin. The simulated series are then stored with their variable name (no shock name appended)
------------
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: Question: Saving simulated data?

Postby kanimbla » Thu Mar 21, 2013 10:15 pm

Thank you for your comments.

Yes, I would like to save IRFs in the variable_shock format for more than 20 periods. Is there a way to do this?
kanimbla
 
Posts: 18
Joined: Sat Jan 14, 2012 8:55 am

Re: Question: Saving simulated data?

Postby jpfeifer » Fri Mar 22, 2013 7:24 am

As stated in the manual, for example
Code: Select all
stoch_simul(irf=100)

generates an IRF for 100 periods.
------------
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: Question: Saving simulated data?

Postby kanimbla » Fri Mar 22, 2013 8:18 am

Perfect, Thanks!
kanimbla
 
Posts: 18
Joined: Sat Jan 14, 2012 8:55 am


Return to Dynare help

Who is online

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