2018-07-18 14:38:11 +02:00
|
|
|
var k, y, L, c, i, A, a, mu;
|
|
|
|
varexo epsilon;
|
|
|
|
parameters beta, theta, tau, alpha, psi, delta, rho, Astar, sigma;
|
2015-07-07 16:37:54 +02:00
|
|
|
|
|
|
|
beta = 0.990;
|
|
|
|
theta = 0.357;
|
|
|
|
tau = 2.000;
|
|
|
|
alpha = 0.450;
|
2018-07-18 14:38:11 +02:00
|
|
|
psi = -2.500;
|
2015-07-07 16:37:54 +02:00
|
|
|
delta = 0.020;
|
2018-07-18 14:38:11 +02:00
|
|
|
rho = 0.998;
|
|
|
|
Astar = 1.000;
|
2015-07-07 16:37:54 +02:00
|
|
|
sigma = 0.100;
|
|
|
|
|
|
|
|
model;
|
2018-07-18 14:38:11 +02:00
|
|
|
a = rho*a(-1) + sigma*epsilon;
|
|
|
|
A = Astar*exp(a);
|
|
|
|
(c^theta*(1-L)^(1-theta))^(1-tau)/c - mu = beta*((c(+1)^theta*(1-L(+1))^(1-theta))^(1-tau)/c(+1)*(alpha*(y(+1)/k)^(1-psi)+1-delta)-mu(+1)*(1-delta));
|
|
|
|
((1-theta)/theta)*(c/(1-L)) - (1-alpha)*(y/L)^(1-psi);
|
|
|
|
y = A*(alpha*(k(-1)^psi)+(1-alpha)*(L^psi))^(1/psi);
|
|
|
|
k = y-c+(1-delta)*k(-1);
|
|
|
|
i = k-(1-delta)*k(-1);
|
|
|
|
|
|
|
|
[ mcp = 'i > 0' ]
|
|
|
|
mu = 0;
|
2015-07-07 16:37:54 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
steady_state_model;
|
2018-07-18 14:38:11 +02:00
|
|
|
a=0;
|
|
|
|
mu=0;
|
|
|
|
A=Astar;
|
|
|
|
|
|
|
|
// Steady state ratios
|
|
|
|
Output_per_unit_of_Capital=((1/beta-1+delta)/alpha)^(1/(1-psi));
|
|
|
|
Consumption_per_unit_of_Capital=Output_per_unit_of_Capital-delta;
|
|
|
|
Labour_per_unit_of_Capital=(((Output_per_unit_of_Capital/A)^psi-alpha)/(1-alpha))^(1/psi);
|
|
|
|
Output_per_unit_of_Labour=Output_per_unit_of_Capital/Labour_per_unit_of_Capital;
|
|
|
|
Consumption_per_unit_of_Labour=Consumption_per_unit_of_Capital/Labour_per_unit_of_Capital;
|
|
|
|
|
|
|
|
L=1/(1+Consumption_per_unit_of_Labour/((1-alpha)*theta/(1-theta)*Output_per_unit_of_Labour^(1-psi)));
|
|
|
|
c=Consumption_per_unit_of_Labour*L;
|
|
|
|
k=L/Labour_per_unit_of_Capital;
|
|
|
|
y=Output_per_unit_of_Capital*k;
|
|
|
|
i=delta*k;
|
2015-07-07 16:37:54 +02:00
|
|
|
end;
|
|
|
|
|
|
|
|
shocks;
|
2018-07-18 14:38:11 +02:00
|
|
|
var epsilon;
|
|
|
|
periods 10;
|
|
|
|
values -1;
|
2015-07-07 16:37:54 +02:00
|
|
|
end;
|
|
|
|
|
2018-07-18 14:38:11 +02:00
|
|
|
steady;
|
|
|
|
|
|
|
|
perfect_foresight_setup(periods=400);
|
2020-01-27 16:09:56 +01:00
|
|
|
perfect_foresight_solver(lmmcp, maxit=200, no_homotopy);
|
|
|
|
|
|
|
|
if ~oo_.deterministic_simulation.status
|
|
|
|
error('Convergence not obtained')
|
|
|
|
end
|
2015-07-07 16:37:54 +02:00
|
|
|
|
2018-07-18 14:38:11 +02:00
|
|
|
n = 40;
|
2015-07-07 16:37:54 +02:00
|
|
|
|
2018-07-18 14:38:11 +02:00
|
|
|
figure(2);
|
|
|
|
subplot(3,2,1); plot(1:n,A(1:n)); title('A');
|
|
|
|
subplot(3,2,2); plot(2:n,y(2:n)); title('y');
|
|
|
|
subplot(3,2,3); plot(2:n,L(2:n)); title('L');
|
|
|
|
subplot(3,2,4); plot(1:n,k(1:n)); title('k');
|
|
|
|
subplot(3,2,5); plot(2:n,c(2:n)); title('c');
|
|
|
|
subplot(3,2,6); plot(2:n, y(2:n)-c(2:n)); title('i');
|
2015-12-22 13:25:06 +01:00
|
|
|
|