1: |
Calculate where denotes an estimate of
|
2: |
Calculate resample size
|
3: |
for
do
|
4: |
Draw bootstrap samples of size
|
5: |
Estimate for
|
6: |
For each given , construct a confidence interval for
|
7: |
Calculate by the proportion of confidence intervals for that contain zero |
8: |
Calculate the resample size
|
9: |
end for
|
10: |
Calculate and
|
11: |
Draw bootstrap sample of size
|
12: |
Estimate for ,
|
13: |
Calculate and percentiles of which we denote by and respectively for
|
14: |
Calculate a confidence interval for by for
|