cottrell(a)wfu.edu @ INTERNET skrev 2008-02-18 19:20:33 :
On Mon, 18 Feb 2008, Daniel Arribas wrote:
> One more question: is there any way to generate a new variable
> which is the rank of an already existing one (so that biggest
> value on the existing variable gets 1, second biggest 2, and so
> on...).
I think what you want is
genr y = ranking(x)
Allin Cottrell
Actually, he has to use
genr y = ranking(-x)
since ranking() give ranks from lowest to highest, and Daniel wants ranks
from highest to lowest.
Best regards
Andreas