I am trying to obtain the impulse response with confidence bands for the univariate autoregression.
My model is a simplified model from Cerra and Saxena(AER 2008)
y_t=alpha*y_t-1 + beta_0*dummy_t +beta_1*dummy_t-1 + error_t
I would like to get the impulse response of dummy variable( dummy takes 0 or 1) to y_t.
Since the command of IMPULSE and the procedure @VARIRF work only for VAR, I artificially made the bivariate system.
Furthermore, I calculated the IRFs of error_t and converted them to the IRFs of dummy.
Code: Select all
system(model=bivar)
variables y x
lags 1
end(system)
estimate(noprint,resid=resids)
declare rect[real] beta
compute beta =||alpha,0.0|0.0,0.0||
compute %modelsetcoeffs(bivar,beta)
*Set variance-covariance matrix
compute f=%identity(2)
*Calculate IRFs for error term e_t
impulse(model=bivar,steps=nsteps,factor=f,results=baseirfs,noprint)
*calculate IRFs for dummy from IRFs for error
set IRFD1 = beta_0*baseirfs(1,1)+beta_1*baseirfs(1,1){1}
Is there any better way to calculate the IRF of dummy in a univariate model?
Also, how can I calculate the confidence bands using bootstrapping in my case?