EqBootstrap (bootstrap standard errors)

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Mon Dec 09, 2013 8:34 am

No add-ins work with the student version. No, this add-in does not bootstrap impulse responses.
Follow us on Twitter @IHSEViews

kamya
Posts: 1
Joined: Thu Feb 13, 2014 10:40 am

Re: EqBootstrap (bootstrap standard errors)

Postby kamya » Tue Mar 11, 2014 8:10 am

I am trying to install the Add-In in Eviews but it is not working.
What is the procedure for this?

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Tue Mar 11, 2014 3:51 pm

Same with all add-ins. Select it from the list, and hit the install button.
Follow us on Twitter @IHSEViews

pence5
Posts: 3
Joined: Tue Apr 08, 2014 1:50 am

Re: EqBootstrap (bootstrap standard errors)

Postby pence5 » Fri Apr 11, 2014 8:43 am

Hi,

- Is it appropriate to use this on time-series data?

- Is there a way to save the bootstrapped standard errors in a vector so that I can then use them in later calculations (without going into the results table and manually copying the bootstrapped standard errors into a vector myself)?

(I am using Eviews 7.2)

Thanks in advance for your assistance!

dagfinnrime
Posts: 49
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Re: EqBootstrap (bootstrap standard errors)

Postby dagfinnrime » Wed Jul 02, 2014 6:08 am

How do I get access to the bootstrap-results? Since it's not stored, using eg. equation.@tstats(2) won't work.

I tried the following, and it didn't work.

Code: Select all

freeze(mode=overwrite,_temptab2) _tmpeq.eqbootstrap(bs=5000,se,res)


It runs the bootstrap and show me the results in the equation window. But seems I have to manually freeze the output.

Thanks in advance,
Dagfinn

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Wed Jul 02, 2014 7:32 am

You'll have to modify the add-in to store the table of results somewhere. Actually, there's probably a line at the bottom of the add-in that deletes the output table after displaying it in the current equation. Just remove that line.
Follow us on Twitter @IHSEViews

alireza67
Posts: 2
Joined: Mon Jul 07, 2014 12:41 am

Re: EqBootstrap (bootstrap standard errors)

Postby alireza67 » Mon Jul 07, 2014 1:07 am

Hello,
I have faced a problem with bootstrapping. There are a number of outcomes one at a time when I try to do Bootstrapping using Add-ins --> Bootstrap Coefficients. One outcome is that I receive an error saying "Procedure can only be run from equation estimated by list".

But sometimes I can open the bootstrap window and after clicking on Bootstrap Coefficients, and choosing the "Resample Residual" option and setting the number of repetitions to say (10000), I will be prompted to the estimate equation window with this specification (_yres01 fx ipi market c), and it keeps estimating anytime i press the OK button.

I remember there was another outcome as well, which after choosing the "Resample Residual" and setting number of repetitions, the analysis was performed only at one time, where there was only one estimation output.

I would be very grateful if you could help me out how I can deal with this problem and what each of these three outcomes mean. I am using Eviews 8. Thank you

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Mon Jul 07, 2014 8:19 am

The first issue is caused by the fact that the add-in only supports equations estimated by list. If you've estimated an equation by expression, it won't work.

We'd have to see examples of the other two.
Follow us on Twitter @IHSEViews

alireza67
Posts: 2
Joined: Mon Jul 07, 2014 12:41 am

Re: EqBootstrap (bootstrap standard errors)

Postby alireza67 » Sun Jul 13, 2014 8:04 pm

The first issue is still an issue for me. Im sorry but I need a clarification. Estimating the equation by list is simply highlighting the dependent followed by independent variables, and then right click --> open --> as equation, right? I actually did so and yet i receive the same error.

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Sun Jul 13, 2014 10:39 pm

We'd have to see it then.
Follow us on Twitter @IHSEViews

fineco1984
Posts: 2
Joined: Fri Oct 31, 2014 9:56 am

Re: EqBootstrap (bootstrap standard errors)

Postby fineco1984 » Fri Oct 31, 2014 10:02 am

EViews Gareth wrote:You'll have to modify the add-in to store the table of results somewhere. Actually, there's probably a line at the bottom of the add-in that deletes the output table after displaying it in the current equation. Just remove that line.


Could you please be more specific on that. I have the same problem: I need the results of the coefficients and the corresponding standard errors. I was able to change the add-in, so that i get a vector of all bootstrapped coefficients. But how can I get the corresponding standard errors in a vector?

Thanks in advance!

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Fri Oct 31, 2014 10:13 am

They're stored in the matrix {%cov}. That matrix gets deleted at the end of the bootstrap.prg file. Just remove the entry that deletes it.
Follow us on Twitter @IHSEViews

fineco1984
Posts: 2
Joined: Fri Oct 31, 2014 9:56 am

Re: EqBootstrap (bootstrap standard errors)

Postby fineco1984 » Mon Nov 03, 2014 5:35 am

Thanks for your answer!

But still there is an open question:

If i delete {%cov} at the end, I get the covariance matrix of the centered equation of all bootstrapped coefficients. So just the variance for one coefficient.

Is it anyhow possible to get all standard errors of all 10.000 bootstrapped coefficients? I have the 10.000 bootstrapped coefficients in a vector and i want to calculate the distribution of all the t-values of these 10.000 coeffcients.

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

Re: EqBootstrap (bootstrap standard errors)

Postby EViews Gareth » Mon Nov 03, 2014 7:28 am

No.
Follow us on Twitter @IHSEViews

chris992
Posts: 10
Joined: Sun Oct 20, 2019 6:34 am

Re: EqBootstrap (bootstrap standard errors)

Postby chris992 » Tue Mar 16, 2021 1:41 pm

Hello Gareth,

I have recently downloaded the Kilian add-in and it works fine. The issue is that it only works on var elements. 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 add-in to get bootstrapped standard errors. Is there any way we can modify the add-in 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 slow-moving variables
'Left-hand side of the regression
matrix yy=@subextract(data,1,j,@rows(data),j) 'this sets up the j-th 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 fast-moving variables
'Left-hand side of the regression
yy=@subextract(data,1,j,@rows(data),j) 'j-th 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)


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 18 guests