################################################################## # mann-whitney tests function mwRank(data0,ranks, data,starter,n,old,start,skipping,sum,i,j,r) { starter="someCraZYsymBOL"; n = asort(data0,data) old = starter start = 1; for(i=1;i<=n;i++) { skipping = (old == starter) || (data[i] == old); if (skipping) { sum += i } else { r = sum/(i - start) for(j=start;j meanU ? -0.5 : 0.5 z = abs((sum1 - meanU + correction )/sdU) if (z >= 0 && z <= critical) return 0 if (up) { return 1 } else { return -1 } } function criticalValue(conf) { conf = conf ? conf : 95 if (conf==99) return 2.326 if (conf==95) return 1.960 if (conf==90) return 1.645 } function s2a(s,a, tmp,i,n) { n=split(s,tmp,/ /) for(i=1;i"/dev/stderr"; fflush("/dev/stderr") } function push2(v,a,i) { a[i,++a[i,0]] = v; return v } function push(v,a) { a[++a[0]] = v; return v } function as100(n) { return (n*100) + rand()/100 } function abs(n) { return n < 0 ? -1* n : n } function max(n1,n2) { return n1