Temporary shocks on backward equations without init/endval

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.

Temporary shocks on backward equations without init/endval

Postby Sira » Sat May 19, 2012 9:38 am

Hello,

I am working on a model without expectations, and only backward equations.
And i would like to study the effects of a temporary shock after which the system
goes back to the original equilibrium (the model is stable).

The stochastic shocks work, but it is not the case for temporary shocks.
Although there isn't any problem with the transition from an equilibrium to an other
with the use of initval and endval, how could i introduce a temporary shock on this model and
study a go back to the original equilibrium?

Many thanks

Regards

Sira
Attachments
stdcap.mod
(2.88 KiB) Downloaded 113 times
Sira
 
Posts: 6
Joined: Fri May 11, 2012 2:45 pm

Re: Temporary shocks on backward equations without init/endv

Postby Sira » Wed Jun 06, 2012 2:18 pm

Hello,

Nobody knows?
I just would like to know how to simul a temporary shock on this backward model,
with a go back to the original equilibrium.
Should i use an external Matlab file?

Many thanks

Regards

Sira
Sira
 
Posts: 6
Joined: Fri May 11, 2012 2:45 pm

Re: Temporary shocks on backward equations without init/endv

Postby Sira » Mon Jul 02, 2012 7:13 am

Hello,

Still nobody knows?

I just would like an answer, even a quick one!
How can we simul a temporary shock on backward equations on Dynare (without the use of initval and endval)?
Should i use an external Matlab file? If so, how?

Many thanks

Regards

Sira
Sira
 
Posts: 6
Joined: Fri May 11, 2012 2:45 pm

Re: Temporary shocks on backward equations without init/endv

Postby jpfeifer » Mon Jul 02, 2012 10:58 am

You were mostly right in your mod-file. The problem is that if the shock becomes too large, Dynare does not find a solution. For example with delR=0.079 instead of 0.08 it still works.
Attachments
stdcap.mod
(2.41 KiB) Downloaded 112 times
------------
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: Temporary shocks on backward equations without init/endv

Postby Sira » Mon Jul 02, 2012 3:37 pm

Thank you for the answer.
I tried with a very small shock, but i don't see any shift on the figures of the
variables.
Regarding an external Matlab file, i shall put this command in the mod file:
"shocks(shocks_file = temporary_shock_matlab.m);"
But how can i code the m.file in order to have a temporary shock on backward equations?
Is there already a post dealing with that kind of code?

Many thanks

Sira
Sira
 
Posts: 6
Joined: Fri May 11, 2012 2:45 pm

Re: Temporary shocks on backward equations without init/endv

Postby jpfeifer » Tue Jul 03, 2012 8:19 am

In my posted example with the small shock to delR, you will see that the variable del moves. Why do you want an external shock 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: Temporary shocks on backward equations without init/endv

Postby Sira » Tue Jul 03, 2012 2:50 pm

Ok, i looked at the example again , but i also fail to see it; i certainly don't know how
to look at it correctly.

Thank you

Sira
Sira
 
Posts: 6
Joined: Fri May 11, 2012 2:45 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests