How to Sort in Ascending and Descending Order in Stata

Опубликовано: 29 Август 2022
на канале: The Data Hall
2,753
11

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

Download Do/Data file from the following link:
https://thedatahall.com/using-sort-co...

Best 10 Introductory Econometrics Books
https://thedatahall.com/best-10-intro...

Data Management Using Stata: A Practical Handbook by Michael N. Mitchell
https://amzn.to/3HEULlc

A Gentle Introduction to Stata, by Alan C. Acock
https://amzn.to/3HBgdY4
https://amzn.to/3LWOALz (paperback)

A Visual Guide to Stata Graphics, by Michael N. Mitchell
https://amzn.to/42qLpkG

Regression Models for Categorical Dependent Variables Using Stata, by J. Scott Long and Jeremy Freese
https://amzn.to/3NDoFtC

STATA Guide for Introductory Econometrics for Finance by Chris Brooks
https://amzn.to/3LzONmB

Website: thedatahall.com

Disclaimer: Some links are affiliate links that help the channel at no cost to you.


Смотрите видео How to Sort in Ascending and Descending Order in Stata онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Data Hall 29 Август 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,753 раз и оно понравилось 11 людям.