If I specify the technology shock as a_t = rho_a*a_t(-1)+ea and simulate the responses a news in a_t using simul rather than stoch_simul, is the following the right way to do it?
shocks;
var ea;
periods 1:2 ;
values 0.0 ;
var ea;
periods 3:3;
values .01 ;
var ea;
periods 4:1000;
values 0.00;
end;
//check;
It is suppose a news with regard to the technology after two periods.
However, Dynare gives an error message:
ERROR: JR_aer_unitroot.mod:112.0-114.18: shocks: variable ea declared twice
??? Error using ==> dynare at 96
DYNARE: preprocessing failed
simul(periods=10000);