Simulated data from model

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.

Simulated data from model

Postby abman10 » Thu Jan 15, 2015 3:56 am

Hi,
I am trying to simulate data (endogenous variables) from my DSGE model i implemented by using Dynare. It's clear that Dynare is able to provide impulse response of one variable following a given shock.
But, my question is the following: Is Dynare able to hit the model by several shocks simultanousely ( not separately ) , and then get impulse responses of endogenous variables?

Thanks a lot for help!!

Manadir
abman10
 
Posts: 14
Joined: Thu Jan 15, 2015 3:22 am

Re: Simulated data from model

Postby jpfeifer » Thu Jan 15, 2015 8:26 am

For simulations, use the periods-option of stoch_simul.
------------
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: Simulated data from model

Postby abman10 » Tue Jan 20, 2015 3:20 pm

jpfeifer wrote:For simulations, use the periods-option of stoch_simul.


Thanks...I will try this option.
abman10
 
Posts: 14
Joined: Thu Jan 15, 2015 3:22 am

Re: Simulated data from model

Postby abman10 » Wed Feb 11, 2015 1:48 am

Hi again,
I have tried your last advice to get simulated data from model, but Dynare gives me the following warning message: " Matrix is close to singular or badly scaled. Results may be inaccurate..."
What should i do in this case?
Thank you for help!!
abman10
 
Posts: 14
Joined: Thu Jan 15, 2015 3:22 am

Re: Simulated data from model

Postby jpfeifer » Wed Feb 11, 2015 12:06 pm

Please provide the mod-file
------------
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: Simulated data from model

Postby abman10 » Sun Feb 15, 2015 9:57 pm

Here are two files attached. MSF.mod is simulation file.

I remember you that i try to hit my economy model by several shocks simultanously and at every time for a fixed period, then get artificial data ( for endogenous variables).

Thanks a lot for your help.
Attachments
MSF_steadystate.m
(3.35 KiB) Downloaded 47 times
MSF.mod
(10.32 KiB) Downloaded 51 times
abman10
 
Posts: 14
Joined: Thu Jan 15, 2015 3:22 am

Re: Simulated data from model

Postby jpfeifer » Mon Feb 16, 2015 1:15 pm

Dynare 4.4.3 is unable to solve your model. Please try the unstable version. With that version, your file runs.
------------
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: Simulated data from model

Postby macroresearch123 » Tue Feb 17, 2015 4:10 pm

abman10 wrote:Here are two files attached. MSF.mod is simulation file.

I remember you that i try to hit my economy model by several shocks simultanously and at every time for a fixed period, then get artificial data ( for endogenous variables).

Thanks a lot for your help.

I've found this often happens due to mis-specification. Recheck your equations and make sure you can solve your steady state with another solver. Sometimes big shocks, or too many shocks, cause problems in nonlinear systems.
macroresearch123
 
Posts: 90
Joined: Wed Nov 06, 2013 3:28 pm

Re: Simulated data from model

Postby abman10 » Tue Feb 17, 2015 4:51 pm

Your suggestions are really appreciated.
abman10
 
Posts: 14
Joined: Thu Jan 15, 2015 3:22 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests