2011-12-19 18:13:34 +01:00
|
|
|
var Efficiency, efficiency;
|
|
|
|
|
|
|
|
varexo EfficiencyInnovation;
|
|
|
|
|
|
|
|
parameters rho, effstar, sigma2;
|
|
|
|
|
|
|
|
/*
|
|
|
|
** Calibration
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
rho = 0.950;
|
|
|
|
effstar = 1.000;
|
|
|
|
sigma2 = 0.0001;
|
|
|
|
|
|
|
|
external_function(name=mean_preserving_spread);
|
|
|
|
|
2012-02-04 18:44:57 +01:00
|
|
|
model;
|
2011-12-19 18:13:34 +01:00
|
|
|
|
|
|
|
// Eq. n°1:
|
|
|
|
efficiency = rho*efficiency(-1) + EfficiencyInnovation;
|
|
|
|
|
|
|
|
// Eq. n°2:
|
|
|
|
Efficiency = effstar*exp(efficiency-mean_preserving_spread(rho));
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
shocks;
|
|
|
|
var EfficiencyInnovation = sigma2;
|
|
|
|
end;
|
|
|
|
|
|
|
|
steady;
|
|
|
|
|
|
|
|
options_.ep.verbosity = 0;
|
2012-03-08 12:50:28 +01:00
|
|
|
options_.ep.stochastic.order = 0;
|
|
|
|
options_.ep.stochastic.nodes = 0;
|
2011-12-19 18:13:34 +01:00
|
|
|
options_.console_mode = 0;
|
|
|
|
|
2012-03-06 12:42:37 +01:00
|
|
|
ts = extended_path([],100);
|
2011-12-19 18:13:34 +01:00
|
|
|
|
|
|
|
options_.ep.verbosity = 0;
|
2012-03-08 12:50:28 +01:00
|
|
|
options_.ep.stochastic.order = 1;
|
|
|
|
options_.ep.stochastic.nodes = 3;
|
2011-12-19 18:13:34 +01:00
|
|
|
options_.console_mode = 0;
|
|
|
|
|
2012-03-04 20:59:57 +01:00
|
|
|
sts = extended_path([],100);
|
2011-12-19 18:13:34 +01:00
|
|
|
|
2012-03-08 12:50:28 +01:00
|
|
|
if max(max(abs(ts-sts)))>options_.dynatol.x
|
2011-12-19 18:13:34 +01:00
|
|
|
disp('Stochastic Extended Path:: Something is wrong here (potential bug in extended_path.m)!!!')
|
|
|
|
end
|