No BSD License  

Highlights from
Bootstrap a statistic in a grouped sample

image thumbnail
meandiff_scalar(c,x)
function[res] = meandiff_scalar(c,x)
% Difference between the means of two sub-samples of x:
% x values corresponding to c = 1, and those with c = 2
% EXAMPLE: f = meandiff_scalar([1 2],[.5 0])
res = mean(x(c==1)) - mean(x(c==2));

Contact us at files@mathworks.com