Help with writing the model into the codes!!!
Posted: Sun Dec 07, 2014 5:07 am
I'm new to Dynare! I derived all the F.O. conditions for my model and I'm confused how to write them in mod file. My aim is to find the optimal monetary policy rule for Small open economy. My understanding is that I need to solve the model first before I find the optimal rules. Also, I need to write the model in non-linear form. I have few question, would appreciate it any help really!
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.
2) how to write the monetary policy rule ? I have it as following but not sure if it is right.
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.
Please note that I write V in the monetary policy rule as specified above and I write A in the production function as following:
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!
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!