Page 1 of 1

shock on capital

PostPosted: Tue Jun 11, 2013 9:45 am
by emme
Hi everyone,

I'm new to Dynare and I'm encountering some problems with the replication of a deterministic model (Shimer 2012). In particular, from what I read on the user guide, I understand that only exogenous variables can be shocked. But the shock that I need in this case is a reduction in the capital stock (-10%), and clearly capital is not an exogenous variable. Is there any easy way to model this?

I tried to assume that capital depends on an exogenous variable, say gamma, and an endogenous one, e.g. ktilde:
k=gamma*ktilde.
But in this case, when I change the value of gamma from 1 to 0.9 in the "shocks"section, all that I get is an increase in ktilde, which leaves K (and all the other variables) unchanged. Is there a way to set ktilde unresponsive to the movement of gamma? I need K to bear all the adjustment.

I would really appreciate your help, and I am willing to provide any additional information in case you need it.

Many thanks

Re: shock on capital

PostPosted: Fri Jun 14, 2013 7:07 am
by jpfeifer
You are on the right track. The way you currently do it defines capital through the other equations of the model. The equation
Code: Select all
k=gamma*ktilde

then just defines ktilde, given k. You need to change the timing considerably. Basically, the capital stock you now use is not really predetemined anymore. Thus, your production function is
Code: Select all
y=k^alpha*l^alpha

instead of
Code: Select all
y=k(-1)^alpha*l^alpha

Similarly for all other equations. At the same time, your law of motion for capital is the one that changes most. The capital stock at time t is now still determined by yesterday's capital and yesterday's investment (i.e. predetermined in terms of endogenous variables), but it is also affected by a time t exogenous shock:
Code: Select all
k=gamma*(invest(-1)+(1-delta)*k(-1));


I attached a model how I think it should be done.

Re: shock on capital

PostPosted: Fri Jun 14, 2013 7:19 am
by emme
Thank you so much Jpfeifer, this is exactly what I needed!

Re: shock on capital

PostPosted: Sat Aug 02, 2014 4:15 am
by J.Höffler
If you are interested in replication, this might be of interest to you: viewtopic.php?f=2&t=5926