Yes, thanks for your great script, but...
It works only there are no redundant values within x~y
For example,
x = {1,2,3,4}' and
y={1,3,5,7,9}' ,
then w1 should be 15 rather than 14 ...
Best wishes
Yi-Nung Yang
On Wed, 29 Jun 2011, yinung at Gmail wrote:No, but it is easy to calculate.
> Is there any way to retrieve "sum of ranks" after executing "difftest" with
> --rank-sum option?
<hansl>
nulldata 30
series x = normal()
series y = normal()
# for comparison
difftest x y --rank-sum
# calculate rank-sum manually
matrix Z = ({x} ~ 1) | ({y} ~ 0)
Z = msortby(Z, 1) ~ seq(1,rows(Z))'
w1 = sumc(selifr(Z[,3], Z[,2]))
</hansl>
Allin
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users