Hi is it possible to sort two variables for example by id number and sex. So if I have the following data:
1. Female
2. Female
3. Female
4. Male
5. Female
6. Male
7. Male
8. Female
9. Male
10. Male
Can I sort it to be:
1. Female
2. Female
3. Female
5. Female
8. Female
4. Male
6. Male
7. Male
9. Male
10. Male
Related Posts with Sort two variables simultaneously
problem plotting latitude and longitude using grmapDear Statalists, I am having some problem in plotting latitude and longitude on a map I have perform…
Dropping Variables with Multiple Conditions.Hi, Statalist. I'm trying to clean a dataset. This is a small snippet below...I deleted some variabl…
Replicate TableHello, I am trying to replicate the below table, but I'm not sure which command to use. The "final …
question on Use logical expressions and sum()This question is from N. J. Cox's article: https://journals.sagepub.com/doi/pdf...867X1101100210. Se…
Relabeling ValuesThis is my first time using Stata without help from a professor, and I am struggling to relabel my v…
Subscribe to:
Post Comments (Atom)
0 Response to Sort two variables simultaneously
Post a Comment