shock on capital

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.

shock on capital

Postby emme » Tue Jun 11, 2013 9:45 am

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
emme
 
Posts: 3
Joined: Tue Jun 11, 2013 9:27 am

Re: shock on capital

Postby jpfeifer » Fri Jun 14, 2013 7:07 am

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.
Attachments
RBC_capitalstock_shock.mod
Simple RBC model with shock to capital stock
(4.29 KiB) Downloaded 152 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: shock on capital

Postby emme » Fri Jun 14, 2013 7:19 am

Thank you so much Jpfeifer, this is exactly what I needed!
emme
 
Posts: 3
Joined: Tue Jun 11, 2013 9:27 am

Re: shock on capital

Postby J.Höffler » Sat Aug 02, 2014 4:15 am

If you are interested in replication, this might be of interest to you: viewtopic.php?f=2&t=5926
J.Höffler
 
Posts: 15
Joined: Fri Aug 01, 2014 3:14 pm


Return to Dynare help

Who is online

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