| 1 |
@#define extended_path_version = 1 |
| 2 |
|
| 3 |
var Capital, Output, Labour, Consumption, Investment, Efficiency, efficiency, residual, marginal_utility; |
| 4 |
|
| 5 |
varexo EfficiencyInnovation; |
| 6 |
|
| 7 |
parameters beta, theta, tau, alpha, psi, delta, rho, effstar, sigma; |
| 8 |
|
| 9 |
/* |
| 10 |
** Calibration |
| 11 |
*/ |
| 12 |
|
| 13 |
beta = 0.990; |
| 14 |
theta = 0.357; |
| 15 |
tau = 2.000; |
| 16 |
alpha = 0.450; |
| 17 |
psi = -0.200; |
| 18 |
delta = 0.020; |
| 19 |
rho = 0.800; |
| 20 |
effstar = 1.000; |
| 21 |
sigma = 0.100; |
| 22 |
|
| 23 |
model; |
| 24 |
|
| 25 |
efficiency = rho*efficiency(-1) + sigma*EfficiencyInnovation; |
| 26 |
|
| 27 |
Efficiency = effstar*exp(efficiency); |
| 28 |
|
| 29 |
(((Consumption^theta)*((1-Labour)^(1-theta)))^(1-tau))/Consumption - beta*((((Consumption(+1)^theta)*((1-Labour(+1))^(1-theta)))^(1-tau))/Consumption(+1))*(alpha*((Output(+1)/Capital)^(1-psi))+1-delta); |
| 30 |
|
| 31 |
residual = (((Consumption^theta)*((1-Labour)^(1-theta)))^(1-tau))/Consumption - beta*((((Consumption(+1)^theta)*((1-Labour(+1))^(1-theta)))^(1-tau))/Consumption(+1))*(alpha*((Output(+1)/Capital)^(1-psi))+1-delta); |
| 32 |
|
| 33 |
((1-theta)/theta)*(Consumption/(1-Labour)) - (1-alpha)*(Output/Labour)^(1-psi); |
| 34 |
|
| 35 |
Output = Efficiency*(alpha*(Capital(-1)^psi)+(1-alpha)*(Labour^psi))^(1/psi); |
| 36 |
|
| 37 |
Output = Consumption + Investment; |
| 38 |
|
| 39 |
Investment = Capital - (1-delta)*Capital(-1); |
| 40 |
|
| 41 |
marginal_utility = (((Consumption^theta)*((1-Labour)^(1-theta)))^(1-tau))/Consumption; |
| 42 |
|
| 43 |
end; |
| 44 |
|
| 45 |
steady_state_model; |
| 46 |
Efficiency = effstar; |
| 47 |
y_k = (Efficiency^(-psi)*(1/beta-1+delta)/alpha)^(1/(1-psi)); |
| 48 |
c_k = y_k - delta; |
| 49 |
n_k = (((y_k/Efficiency)^psi-alpha)/(1-alpha))^(1/psi); |
| 50 |
y_n = y_k/n_k; |
| 51 |
c_n = c_k/n_k; |
| 52 |
Labour = y_k*(1-alpha)/(((1-theta)/theta)*c_k*(alpha*n_k^(-psi)+1-alpha)+y_k*(1-alpha)); |
| 53 |
Capital = Labour/n_k; |
| 54 |
Consumption = c_n*Labour; |
| 55 |
Output = Efficiency*(alpha*Capital^psi+(1-alpha)*Labour^psi)^(1/psi); |
| 56 |
Investment = delta*Capital; |
| 57 |
residual = 0; |
| 58 |
marginal_utility = (((Consumption^theta)*((1-Labour)^(1-theta)))^(1-tau))/Consumption; |
| 59 |
end; |
| 60 |
|
| 61 |
steady; |
| 62 |
|
| 63 |
shocks; |
| 64 |
var EfficiencyInnovation; |
| 65 |
periods 1; |
| 66 |
values -4; |
| 67 |
end; |
| 68 |
|
| 69 |
perfect_foresight_setup(periods=100); |
| 70 |
|
| 71 |
perfect_foresight_solver(lmmcp); |
| 72 |
|
| 73 |
rplot Investment; |
| 74 |
|
| 75 |
rplot residual; |