Negative shocks
Posted: Fri Jan 16, 2015 4:40 pm
How is one to generate negative shocks in Dynare? Thanks.
Forums for asking questions, posting comments and uploading examples related to Dynare
http://www.dynare.org/phpBB3/
z=rho*z(-1)+eps_z;
z=rho*z(-1)-eps_z;
% Solutions
w_solution = NaN(10,T);
x_solution = NaN(10,T);
w_solution(:,1) = [0.1; 0.1; 0.1; 0.1; 0.1; 0.1; 0.1; 0.1; 0.1; 0.1];
x_solution(:,1) = inv(Pi_t_11) * w_solution(:,1);
for t = 2:T
x_solution(:,t) = inv(Upsilon_11)*Psi_11*x_solution(:,t-1);
w_solution(:,t) = Pi_t_11*x_solution(:,t);
end