Dear Allin,

Thanks. It works perfectly (tested in CVS for windows XP) !

Yi-Nung Yang

2011/7/3 Allin Cottrell <cottrell@wfu.edu>

However, the need to go back and forth between matrices and series
is not very elegant. In CVS I have now enabled the ranking()
function for vectors. So this will now work:

<hansl>
matrix mx = {1,2,3,4}'
matrix my = {1,3,5,7,9}'
matrix Z = msortby((mx ~ 1) | (my ~ 0), 1)
w1 = sumc(selifr(ranking(Z[,1]), Z[,2]))
</hansl>

Allin
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users