Re: Replicate IRF in Diebold Rudebusch Aruoba (2006)
Posted: Thu Nov 08, 2018 3:09 am
Here is the plot code.
spgraph(vfields=6,hfields=6)
do j = 1,6
do i = 1,6
graph(min=-1.25,max=1.25,NODATES,VTICKS=4, NUMBER=0) 3
# IRFGRAPH(i,j)
# upper_matrix(i,j)
# lower_matrix(i,j)
end do i
end do j
spgraph(done)
However, the problem is not the plot, since the calculation of the upper_matrix and lower_matrix that store that confidence bands is corrupted.
Only upper_matrix(6,6) and lower_matrix(6,6) are estimated correctly while others only contain zero.
Here is the replication code plus dlmirf and modified varirfdelta in a zip file.
Thanks!
spgraph(vfields=6,hfields=6)
do j = 1,6
do i = 1,6
graph(min=-1.25,max=1.25,NODATES,VTICKS=4, NUMBER=0) 3
# IRFGRAPH(i,j)
# upper_matrix(i,j)
# lower_matrix(i,j)
end do i
end do j
spgraph(done)
However, the problem is not the plot, since the calculation of the upper_matrix and lower_matrix that store that confidence bands is corrupted.
Only upper_matrix(6,6) and lower_matrix(6,6) are estimated correctly while others only contain zero.
Here is the replication code plus dlmirf and modified varirfdelta in a zip file.
Thanks!