752752 % Calculate empirical influence function
753753 if (~ isempty (strata ))
754754 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 ));
756756 else
757- U = (n - 1 ) * bsxfun (@minus , mean ( T , 2 ) , T );
757+ U = (n - 1 ) * bsxfun (@minus , T0 , T );
758758 end
759759 a = sum (U .^ 3 , 2 ) ./ (6 * sum (U .^ 2 , 2 ) .^ 1.5 );
760760 catch
@@ -1443,7 +1443,7 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
14431443% ! % method | 0.05 | 0.95 | length | shape |
14441444% ! % --------------------------------------|--------|--------|--------|-------|
14451445% ! % 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 |
14471447% ! % ci6a - calibrated (equal-tailed) | 83.0 | 252.9 | 169.9 | 0.92 |
14481448% ! % ci6b - calibrated | 113.2 | 282.4 | 169.2 | 1.90 |
14491449% ! % --------------------------------------|--------|--------|--------|-------|
@@ -1458,13 +1458,14 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
14581458% ! % method | coverage | lower | upper | length | shape |
14591459% ! % ---------------------------|----------|--------|--------|--------|-------|
14601460% ! % 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 |
14621462% ! % calibrated (equal-tailed) | 90.0% | 0.1% | 9.9% | 1.01 | 1.04 |
14631463% ! % calibrated | 90.3% | 4.5% | 5.2% | 0.99 | 2.21 |
14641464% ! % ---------------------------|----------|--------|--------|--------|-------|
14651465% ! % parametric - exact | 90.8% | 3.7% | 5.5% | 0.99 | 2.52 |
14661466% !
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
14681469% ! %
14691470% ! % method | original | bias | bias-corrected |
14701471% ! % -----------------------------------|----------|---------|----------------|
@@ -1607,8 +1608,8 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
16071608% ! assert (stats.original, 171.534023668639, 1e-08);
16081609% ! assert (stats.bias, -6.916841556872669, 1e-08);
16091610% ! 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);
16121613% ! end
16131614% !
16141615% ! % Nonparametric 90% calibrated equal-tailed percentile confidence intervals
@@ -1670,8 +1671,8 @@ function print_output (stats, nboot, alpha, l, m, bootfun_str, strata)
16701671% ! assert (stats.original, 0.7763744912894071, 1e-08);
16711672% ! assert (stats.bias, -0.008589727569214833, 1e-08);
16721673% ! 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);
16751676% ! end
16761677% !
16771678% ! % Nonparametric 90% calibrated equal-tailed percentile confidence intervals
0 commit comments