I have 100 variables with data that I want to rank by row from the largest to smallest. Does it mean that in the
within
I will have to type out all the hundred variables and the associated new ones? Is there a simpler way to say use a range where variables are not sequentially labelled or even how to use the (*) to add a number for new variables?
varlist
Code:
rowsort [varlist], gen(newvarlist)

Comment