File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 87
87
% '[BOOTSTAT, BOOTSAM, STATS] = bootstrp (...)' also calculates and returns
88
88
% the following basic statistics relating to each column of BOOTSTAT:
89
89
% - original: the original estimate(s) calculated by BOOTFUN and the DATA
90
- % - bias: bootstrap bias of the estimate(s)
90
+ % - mean: the mean of the bootstrap distribution(s)
91
+ % - bias: bootstrap bias estimate(s)
91
92
% - bias_corrected: original estimate(s) after subtracting the bias
92
93
% - var: bootstrap variance of the original estimate(s)
93
94
% - std_error: bootstrap standard error of the original estimate(s)
455
456
if (~ isempty (bootfun ))
456
457
stats.original = reshape (bootfun (x{: }), 1 , []);
457
458
try
458
- stats.bias = bsxfun (@minus , mean (bootstat ), stats .original );
459
+ stats.mean = mean (bootstat );
460
+ stats.bias = bsxfun (@minus , stats .mean , stats .original );
459
461
stats.bias_corrected = bsxfun (@minus , stats .original , stats .bias );
460
462
stats.var = var (bootstat , 0 );
461
463
stats.std_error = sqrt (stats .var );
You can’t perform that action at this time.
0 commit comments