Hi everyone,
I'm sorry for a messy post before so i post the new one. Please help me to understand why did impulse responses not work in this case. My best guess is that i go beyond the svar STATA workload. Can i have another solution ? Thank you so much
I'm sorry for a messy post before so i post the new one. Please help me to understand why did impulse responses not work in this case. My best guess is that i go beyond the svar STATA workload. Can i have another solution ? Thank you so much
Code:
clear set mem 15m set matsize 5000 import excel using "svar1", first gen quarter = tq(1980q1) +_n-1 tsset quarter, quarterly replace quarter = quarterly("","YQ") if quarter == quarterly("2018q1","YQ") matrix A = ( 1,0,0,0,0,0,0,0,0,0,0 \ .,1,0,0,0,0,0,0,0,0,0 \ .,.,1,0,0,0,0,0,0,0,0 \ .,.,.,1,0,0,0,0,0,0,0 \ .,.,.,.,1,0,0,0,0,0,0 \ .,.,.,.,.,1,0,0,0,0,0 \.,.,.,.,.,.,1,0,0,0,0 \ .,.,.,.,.,.,.,1,0,0,0 \ .,.,.,.,.,.,.,.,1,0,0 \ .,.,.,.,.,.,.,.,.,1,0 \ .,.,.,.,.,.,.,.,.,.,1) matrix B = (.,0,0,0,0,0,0,0,0,0,0 \ 0,.,0,0,0,0,0,0,0,0,0 \ 0,0,.,0,0,0,0,0,0,0,0 \ 0,0,0,.,0,0,0,0,0,0,0 \ 0,0,0,0,.,0,0,0,0,0,0 \ 0,0,0,0,0,.,0,0,0,0,0 \ 0,0,0,0,0,0,.,0,0,0,0 \ 0,0,0,0,0,0,0,.,0,0,0\ 0,0,0,0,0,0,0,0,.,0,0 \ 0,0,0,0,0,0,0,0,0,.,0 \ 0,0,0,0,0,0,0,0,0,0,.) svar pi_us y_us r_us pi_jap y_jap r_jap e_jap pi_kor y_kor r_kor e_kor, lag(1/2) aeq(A) beq(B) matlist e(A) matlist e(B) irf cre order1, step(10) set(myirf1,replace) irf graph sirf, xlabel(0(4)20) irf(order1) yline(0,lcolor(black)) byopts(yrescale)
Comment