Kilian addin
Moderators: EViews Gareth, EViews Moderator, EViews Esther
Kilian addin
This thread is about the kilian addin that that implements the Kilian biasadjusted bootstrap for VAR impulse response.
Re: Kilian addin
Hi guys,
I have applied the Kilian addin to a standard monetary VAR to retrieve impulse responses with bootstrapped confidence intervals. For a minority of impulse responses, the mean response exceeds the bootstrapped confidence intervals. To me, this does not make sense. For illustrative purposes, I will attach a picture of an impulse response to a monetary shock that exhibits said pattern.
I would be most grateful to you if you could provide me with possible explanations for this response behavior.
I have applied the Kilian addin to a standard monetary VAR to retrieve impulse responses with bootstrapped confidence intervals. For a minority of impulse responses, the mean response exceeds the bootstrapped confidence intervals. To me, this does not make sense. For illustrative purposes, I will attach a picture of an impulse response to a monetary shock that exhibits said pattern.
I would be most grateful to you if you could provide me with possible explanations for this response behavior.
Re: Kilian addin
Dear guys,
I have a problem with the Kilian addin. I am running the code (the impulse variable is "dl_t_size") after a VAR estimation and it appears this error "Error 52 in encrypted program". My Eviews version is 11 updated to the last patch. Attached is the Eviews file. Thank you in advance.
I have a problem with the Kilian addin. I am running the code (the impulse variable is "dl_t_size") after a VAR estimation and it appears this error "Error 52 in encrypted program". My Eviews version is 11 updated to the last patch. Attached is the Eviews file. Thank you in advance.
 Attachments

 ex_kilian.wf1
 (18.94 KiB) Downloaded 527 times
Re: Kilian addin
The bug is fixed. I hope the moderator will upload the addin soon.

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 13114
 Joined: Tue Sep 16, 2008 5:38 pm

 Posts: 8
 Joined: Wed Nov 07, 2018 4:14 am
Re: Kilian addin
Dear all,
thank you very much for providing this addin. It is very useful.
I am wondering how can I obtain accumulated 'bands' when I use variables at the firstdifferences. The Kilian addin (differently from the 'scale IRFs' addin') cannot provided accumulated IRFs. I am wondering if it is sufficient to accumulate the bands provided by the Kilian addin. are you going to implement this tool by allowing the addin to accumulated directly IRFs and Bands?
Best,
S
thank you very much for providing this addin. It is very useful.
I am wondering how can I obtain accumulated 'bands' when I use variables at the firstdifferences. The Kilian addin (differently from the 'scale IRFs' addin') cannot provided accumulated IRFs. I am wondering if it is sufficient to accumulate the bands provided by the Kilian addin. are you going to implement this tool by allowing the addin to accumulated directly IRFs and Bands?
Best,
S
Re: Kilian addin
I will try to include the option which provides the accumulative IRFs. Yes, you can do this manually after saving the IRFs or write code.

 Posts: 8
 Joined: Wed Nov 07, 2018 4:14 am
Re: Kilian addin
Thank you vary much for your help and effort.
I do not know neither the code for estimating the Kilian bootstrap in VAR models nor for estimating a 'scale factor for IRF'. The latter for instance is present in the Scale IRF addin and not in the Kilian addin.
Best,
S
I do not know neither the code for estimating the Kilian bootstrap in VAR models nor for estimating a 'scale factor for IRF'. The latter for instance is present in the Scale IRF addin and not in the Kilian addin.
Best,
S
Re: Kilian addin
Hello Dakila,
I have recently downloaded the Kilian addin and it works fine. The issue is that it only works on var objects. I am running a standard FAVAR monetary policy model following a Bank of England study (2015) code. At the last line, I end up with a matrix storing the impulse responses. I can see the graphs, but I cannot apply Kilian addin to get bootstrapped standard errors. Is there any way we can modify the addin or any code to obtain bootstrapped standard errors from matrices or vectors?
Thank you,
Chris
var favar.ls 1 2 pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA
favar.impulse(12,g,matbys=irf) pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA @ CU_END_MONTH_OFFICIAL_BA
matrix (158,11) weights 'creates matrix that will hold the proper weights
group pcn pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n
matrix xx=@convert(pcn) 'new matrix containing the factors
scalar j
for j=1 to 105 'loop over the 105 slowmoving variables
'Lefthand side of the regression
matrix yy=@subextract(data,1,j,@rows(data),j) 'this sets up the jth column of data for estimation
matrix btemp=@inverse(@transpose(xx)*xx)*(@transpose(xx)*yy)
weights (j,1)=btemp(1,1)
weights (j,2)=btemp(2,1)
weights (j,3)=btemp(3,1)
weights (j,4)=btemp(4,1)
weights (j,5)=btemp(5,1)
weights (j,6)=btemp(6,1)
weights (j,7)=btemp(7,1)
weights (j,8)=btemp(8,1)
weights (j,9)=btemp(9,1)
weights (j,10)=btemp(10,1) 'the previous linessave the weights
next
group pcn1 pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA
matrix xx1=@convert(pcn1) 'matrix with factors and CU_END_MONTH_OFFICIAL_BA
for j=106 to 158 'loop over the 53 fastmoving variables
'Lefthand side of the regression
yy=@subextract(data,1,j,@rows(data),j) 'jth column of data matrix
btemp=@inverse(@transpose(xx1)*xx1)*(@transpose(xx1)*yy)
weights (j,1)=btemp(1,1)
weights (j,2)=btemp(2,1)
weights (j,3)=btemp(3,1)
weights (j,4)=btemp(4,1)
weights (j,5)=btemp(5,1)
weights (j,6)=btemp(6,1)
weights (j,7)=btemp(7,1)
weights (j,8)=btemp(8,1)
weights (j,9)=btemp(9,1)
weights (j,10)=btemp(10,1)
weights (j,11)=btemp(11,1) 'note coefficients relating cu_int_rate and the data
next
'Impulse Responses
matrix irf1=@subextract (irf,1,111,12,121) 'irf of pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n to CU_END_MONTH_OFFICIAL_BA shock
matrix irfmat=irf1*@transpose(weights)
P.S. I accidentally posted this to another thread Eqbootstrap (bootstrap standard errors). I am sorry about that!
I have recently downloaded the Kilian addin and it works fine. The issue is that it only works on var objects. I am running a standard FAVAR monetary policy model following a Bank of England study (2015) code. At the last line, I end up with a matrix storing the impulse responses. I can see the graphs, but I cannot apply Kilian addin to get bootstrapped standard errors. Is there any way we can modify the addin or any code to obtain bootstrapped standard errors from matrices or vectors?
Thank you,
Chris
var favar.ls 1 2 pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA
favar.impulse(12,g,matbys=irf) pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA @ CU_END_MONTH_OFFICIAL_BA
matrix (158,11) weights 'creates matrix that will hold the proper weights
group pcn pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n
matrix xx=@convert(pcn) 'new matrix containing the factors
scalar j
for j=1 to 105 'loop over the 105 slowmoving variables
'Lefthand side of the regression
matrix yy=@subextract(data,1,j,@rows(data),j) 'this sets up the jth column of data for estimation
matrix btemp=@inverse(@transpose(xx)*xx)*(@transpose(xx)*yy)
weights (j,1)=btemp(1,1)
weights (j,2)=btemp(2,1)
weights (j,3)=btemp(3,1)
weights (j,4)=btemp(4,1)
weights (j,5)=btemp(5,1)
weights (j,6)=btemp(6,1)
weights (j,7)=btemp(7,1)
weights (j,8)=btemp(8,1)
weights (j,9)=btemp(9,1)
weights (j,10)=btemp(10,1) 'the previous linessave the weights
next
group pcn1 pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n CU_END_MONTH_OFFICIAL_BA
matrix xx1=@convert(pcn1) 'matrix with factors and CU_END_MONTH_OFFICIAL_BA
for j=106 to 158 'loop over the 53 fastmoving variables
'Lefthand side of the regression
yy=@subextract(data,1,j,@rows(data),j) 'jth column of data matrix
btemp=@inverse(@transpose(xx1)*xx1)*(@transpose(xx1)*yy)
weights (j,1)=btemp(1,1)
weights (j,2)=btemp(2,1)
weights (j,3)=btemp(3,1)
weights (j,4)=btemp(4,1)
weights (j,5)=btemp(5,1)
weights (j,6)=btemp(6,1)
weights (j,7)=btemp(7,1)
weights (j,8)=btemp(8,1)
weights (j,9)=btemp(9,1)
weights (j,10)=btemp(10,1)
weights (j,11)=btemp(11,1) 'note coefficients relating cu_int_rate and the data
next
'Impulse Responses
matrix irf1=@subextract (irf,1,111,12,121) 'irf of pc1n pc2n pc3n pc4n pc5n pc6n pc7n pc8n pc9n pc10n to CU_END_MONTH_OFFICIAL_BA shock
matrix irfmat=irf1*@transpose(weights)
P.S. I accidentally posted this to another thread Eqbootstrap (bootstrap standard errors). I am sorry about that!
Re: Kilian addin
Hello,
On the same note, I have downloaded Eviews 12 and I was trying to run a VAR with user specified Decomposition method and apply Kilian's standard errors, but it says there is Internal error 500. I guess I can't apply both, is there a way to fix that or bypass that?
Thank you,
Chris
On the same note, I have downloaded Eviews 12 and I was trying to run a VAR with user specified Decomposition method and apply Kilian's standard errors, but it says there is Internal error 500. I guess I can't apply both, is there a way to fix that or bypass that?
Thank you,
Chris
Who is online
Users browsing this forum: No registered users and 6 guests