by ale » Fri Sep 02, 2011 5:01 pm
Hi!
Thank you for your answer. Here are some details about what I'm trying to code in Dynare: I have a variable - b - that needs to follow an autoregressive process for only 3 periods, and afterwards it should be zero. For this I've introduced a dummy variable - d - (an exogenous variable) that takes the value 1 in the first 3 periods, and 0 afterwards, such that my equation looks like this in Dynare: b=d*rho*b(-1)+e_b, where e_b is the initial shock and rho the autoregressiv parameter. With deterministic shocks, I have the following code:
shocks;
var e_b; periods 1; values 0.01;
var d; periods 1:3; values 1;
end;
simul(periods=20);
Can I do the same thing using stochastic shocs (stoch_simul)? That is, obtain an unique set of IRFs in response of these two simultaneous shocks (e_b and d). Also, the variable d needs to be 1 at all times during 3 periods and not follow an autoregressive process.
Thank you,
Alexandra