I have the set of numbers
(Si) = (0.25541156, 4.446482251, 0.389762062, 4.211214131)(sj) = ( 0.25541156, 4.446482251, 0.389762062, 4.211214131) pvalue = ( #( si greater than sj ) + 0.5 (si = sj) )/ i
when i = 1
I am trying to compute this steps
pvalue = 1 when i = 1 pvalue is always 1si = sj = 1when i = 2J = 1 if s2 > sj1 = 1 pvalue = ( 1 + 0.5(1)) / 2 = 0.75J = 2 s2 = sj2 = 1 for i = 3J = 1 s3 > sj1 = 1J = 2 s3 > sJ2 = 0 pvalue = (1 + 0.5 (1))/3 = 0.5J= 3 s3 = sj3 = 1for i = 4J = 1 s4 > sj1 = 1J = 2 S4 > Sj2 = 0 pvalue = 2 + 0.5(1)/4 = 0.625J = 3 s4 > sj3 = 1J = 4 s4 = sj4 = 1
I will appreciate it if I get a code to compute the various pvalue
jonathan
Best Answer