Page 1 of 1

Timing of law of motion of capital in model with trend

PostPosted: Thu Mar 31, 2016 11:34 am
by DW916
Dear Johannes,

If my model with explicitly specified trend, just like your "A Guide to specifying observation equations for estimation of dsge models" Chapter 6, let the labor augmenting technology growth to be Xt, define ut=Xt/Xt-1
Then original law of motion of capital changes from
Kt+1=(1-delta)*Kt+It
to
ut+1*kt+1=(1-delta)*kt+it,

In Dynare , I write code like
Code: Select all
u(+1)*k=(1-delta)*k(-1)+i;


Just want to make sure if I am right with this line of code.
Many thanks,

Catherine

Re: Timing of law of motion of capital in model with trend

PostPosted: Thu Mar 31, 2016 12:02 pm
by diego.gomes
I am also interested in this issue.

I fact, the growth rate is a exogenous variable, right? How do you specify its values during the transition calculation? It changes along the transition path.

Best to all.

Re: Timing of law of motion of capital in model with trend

PostPosted: Thu Mar 31, 2016 1:21 pm
by jpfeifer
Here, with an explicit stochastic trend, the timing is crucial. If you go for the beginning of period capital stock notation as you do, capital K_{t+1 should have a trend factor X_t, not X_{t+1}. Therefore, you will get
Code: Select all
k=(1-delta)*k(-1)/u+i;

Otherwise, people would form expectations about u, although it should be known. See also Aguiar/Gopinath (2007) on this.

Re: Timing of law of motion of capital in model with trend

PostPosted: Fri Apr 01, 2016 3:39 am
by DW916
jpfeifer wrote:Here, with an explicit stochastic trend, the timing is crucial. If you go for the beginning of period capital stock notation as you do, capital K_{t+1 should have a trend factor X_t, not X_{t+1}. Therefore, you will get
Code: Select all
u*k=(1-delta)*k(-1)+i;

Otherwise, people would form expectations about u, although it should be known. See also Aguiar/Gopinath (2007) on this.


Many thanks Johannes, you help me to correct a big mistake, but your example code seems a little bit wrong.
If I understand you correctly,
I would like to define Yt/Xt=yt, While Kt/Xt-1=kt, Xt/Xt-1=ut
Therefore
Kt+1=(1-delta)*Kt+It , becomes
(kt+1)*Xt=(1-delta)*kt*(Xt-1)+it*Xt,

so both sides divided by Xt-1 we get :
ut*kt+1=(1-delta)*kt+ut*it

In Dynare it should be:
Code: Select all
u*k=(1-delta)*k(-1)+u*i;


By the way, the production function Yt=(Kt^alpha)*(XtNt)^(1-alpha)
After detrend becomes yt=(kt/ut)^alpha*Nt^(1-alpha);
In Dynare it should be:
Code: Select all
y=(k(-1)/u)^alpha*n^(1-alpha);


Interest rate Rt=alpha*Yt/Kt=alpha*yt*Xt/(kt*Xt-1)=alpha*yt*ut/kt;
In Dynare it should be:
Code: Select all
r=alpha*y*u/k(-1);


Could you help to check again if I am right this time?

Many thanks.

Re: Timing of law of motion of capital in model with trend

PostPosted: Fri Apr 01, 2016 6:47 am
by jpfeifer
You are right. See also Section 5.1 of my Guide to Observation equations. I corrected my above post for future reference.