Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: sort

From   "Nick Cox" <>
To   <>
Subject   RE: st: sort
Date   Wed, 29 Jun 2005 09:54:43 +0100

The essence of Florence's problem is that two (or more) variables
be sorted together. How would this -egen- function be used
to achieve that? 


philippe van kerm
> This query has been answered yesterday, but for the record, let me add
> that this is what _gclsort does.  _gclsort is available from the SSC
> archive (ssc install _gclsort).
> sysuse auto
> egen price2 = clsort(price)
> > is there a way to sort just ONE variable without changing the 
> > rest of the dataset? i.e. I want to 
> > sort EACH variable seperately and leave the rest of the 
> > dataset the same...

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index