752
752
% Calculate empirical influence function
753
753
if (~ isempty (strata ))
754
754
gk = sum (g .* repmat (nk , n , 1 ), 2 ).' ;
755
- U = bsxfun (@times , gk - 1 , bsxfun (@minus , mean ( T , 2 ) , T ));
755
+ U = bsxfun (@times , gk - 1 , bsxfun (@minus , T0 , T ));
756
756
else
757
- U = (n - 1 ) * bsxfun (@minus , mean ( T , 2 ) , T );
757
+ U = (n - 1 ) * bsxfun (@minus , T0 , T );
758
758
end
759
759
a = sum (U .^ 3 , 2 ) ./ (6 * sum (U .^ 2 , 2 ) .^ 1.5 );
760
760
catch
@@ -1443,7 +1443,7 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
1443
1443
% ! % method | 0.05 | 0.95 | length | shape |
1444
1444
% ! % --------------------------------------|--------|--------|--------|-------|
1445
1445
% ! % ci2 - percentile (equal-tailed) | 96.2 | 237.2 | 141.0 | 0.87 |
1446
- % ! % ci4 - BCa | 115.3 | 263.8 | 148.5 | 1.64 |
1446
+ % ! % ci4 - BCa | 116.1 | 265.1 | 149.0 | 1.69 |
1447
1447
% ! % ci6a - calibrated (equal-tailed) | 83.0 | 252.9 | 169.9 | 0.92 |
1448
1448
% ! % ci6b - calibrated | 113.2 | 282.4 | 169.2 | 1.90 |
1449
1449
% ! % --------------------------------------|--------|--------|--------|-------|
@@ -1458,13 +1458,14 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
1458
1458
% ! % method | coverage | lower | upper | length | shape |
1459
1459
% ! % ---------------------------|----------|--------|--------|--------|-------|
1460
1460
% ! % percentile (equal-tailed) | 81.9% | 1.3% | 16.8% | 0.78 | 0.91 |
1461
- % ! % BCa | 85.6 % | 5.2 % | 9.2 % | 0.87 | 1.84 |
1461
+ % ! % BCa | 85.0 % | 4.6 % | 10.4 % | 0.85 | 1.82 |
1462
1462
% ! % calibrated (equal-tailed) | 90.0% | 0.1% | 9.9% | 1.01 | 1.04 |
1463
1463
% ! % calibrated | 90.3% | 4.5% | 5.2% | 0.99 | 2.21 |
1464
1464
% ! % ---------------------------|----------|--------|--------|--------|-------|
1465
1465
% ! % parametric - exact | 90.8% | 3.7% | 5.5% | 0.99 | 2.52 |
1466
1466
% !
1467
- % ! % Summary of bias statistics from 'boot' package in R
1467
+ % ! % Summary of bias statistics computed using the 'statistics-resampling'
1468
+ % ! % package for Octave/Matlab
1468
1469
% ! %
1469
1470
% ! % method | original | bias | bias-corrected |
1470
1471
% ! % -----------------------------------|----------|---------|----------------|
@@ -1607,8 +1608,8 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
1607
1608
% ! assert (stats.original, 171.534023668639, 1e-08);
1608
1609
% ! assert (stats.bias, -6.916841556872669, 1e-08);
1609
1610
% ! assert (stats.std_error, 42.5668171689963, 1e-08);
1610
- % ! assert (stats.CI_lower, 117.0129329921189 , 1e-08);
1611
- % ! assert (stats.CI_upper, 269.5860065995567 , 1e-08);
1611
+ % ! assert (stats.CI_lower, 117.211853429442 , 1e-08);
1612
+ % ! assert (stats.CI_upper, 270.1620774419748 , 1e-08);
1612
1613
% ! end
1613
1614
% !
1614
1615
% ! % Nonparametric 90% calibrated equal-tailed percentile confidence intervals
@@ -1670,8 +1671,8 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
1670
1671
% ! assert (stats.original, 0.7763744912894071, 1e-08);
1671
1672
% ! assert (stats.bias, -0.008589727569214833, 1e-08);
1672
1673
% ! assert (stats.std_error, 0.1440139406035633, 1e-08);
1673
- % ! assert (stats.CI_lower, 0.3954734403669555 , 1e-08);
1674
- % ! assert (stats.CI_upper, 0.9323937461477884 , 1e-08);
1674
+ % ! assert (stats.CI_lower, 0.3970241602178715 , 1e-08);
1675
+ % ! assert (stats.CI_upper, 0.9326378952057675 , 1e-08);
1675
1676
% ! end
1676
1677
% !
1677
1678
% ! % Nonparametric 90% calibrated equal-tailed percentile confidence intervals
0 commit comments