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.