How to Sort in Ascending and Descending Order in Stata

8K views Mar 19, 2023
publisher-humix

thedatahall.com

Verified Humix Creator Badge

Soting a variable in Ascending order is done using sort command in stata, however, sort command cannot be used for descending order. For sorting in descending order we use gsort in stata. Further we can also sort on multiple varaibles or keep the missing values first or generate a variable based on sorting. 00:00 Intro to sort command 0:57 Sort in ascending order single 1:21 Sort on multiple variables 3:00 Stable option 7:15 gsort for descending order Website: thedatahall.com

#Motor Vehicles (By Type)
#Statistics