1) Is the following way correct to enter the model in the codes?
This is the F.O. C. with respect to (k t+1 ) - which is the capital with cost adjustment investment.
- Code: Select all
psii*((k(+1)/k)-1)+1=betta*(lammbda(+1)/lammbda)*(1+rk(+1)-deltta+((psii/2)*((k(+2)/k(+1))-1)));
2) how to write the monetary policy rule ? I have it as following but not sure if it is right.
- Code: Select all
(R/R_ss)=((Y/Y_ss)^rho_Y)*((pi/pi_ss)^rho_pi)*((s/s_ss)^rho_s)*(v);
where v follows AR(1) process.
3) How to write the AR(1) process shocks in the code?
I will give two examples. one is the productivity shock, and the other one is the monetary policy shock.
- Code: Select all
A = rho_A*A(-1) +e_A ;
- Code: Select all
v =rho_v*v(-1) + e_v;
Please note that I write V in the monetary policy rule as specified above and I write A in the production function as following:
- Code: Select all
Y = (k^(alphaa))*((A*L)^(1-alphaa));
Basically what I did is I copied the F.C C. into the codes but really not sure if that's the way to do it.
I really appreciate any help !!! Thanks for your time!