Deterministic shocks from data file. It is possible?

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.

Deterministic shocks from data file. It is possible?

Postby diego.gomes » Fri Apr 01, 2016 2:40 pm

Hi all!

I have a deterministic growth model and want to consider many shocks to the exogenous variables. I know I can put these shocks by hand. However, the code becomes very inelegant.

Is there a way to load the shock values from a data file?

Attached is my code. Look at the shocks block to see how many shocks I have.

Best to all.
Attachments
code2.mod
(5.04 KiB) Downloaded 56 times
diego.gomes
 
Posts: 17
Joined: Sun Oct 28, 2012 7:37 pm

Re: Deterministic shocks from data file. It is possible?

Postby jpfeifer » Fri Apr 01, 2016 3:21 pm

Yes. See
Code: Select all
initval_file

in the manual.
------------
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: Deterministic shocks from data file. It is possible?

Postby diego.gomes » Fri Apr 01, 2016 4:12 pm

Thanks jpfeifer!

Could you please show me a piece of code using this command? In the manual there is no example using this command.

Best.
diego.gomes
 
Posts: 17
Joined: Sun Oct 28, 2012 7:37 pm

Re: Deterministic shocks from data file. It is possible?

Postby jpfeifer » Fri Apr 01, 2016 4:32 pm

------------
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: Deterministic shocks from data file. It is possible?

Postby diego.gomes » Fri Apr 01, 2016 8:34 pm

Thanks! I will take a look!
diego.gomes
 
Posts: 17
Joined: Sun Oct 28, 2012 7:37 pm


Return to Dynare help

Who is online

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