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
New version of xcontract )AGAIN) on SSCThanks once again to Kit Baum, a new version of the xcontract package (superseding yesterday's versi…
spmap optionsHello, I used -spmap- to map US employment and this is the code I used: Code: spmap cbp_emp_sum u…
apc modelHi, I want to estimate the following model: log_income = B*age with year and cohort fixed effects. I…
Estimating Intergenerational Correlation (IGC) with nlcomDear Statalisters, I am trying to estimate the Intergenerational Correlation (IGC) in education usi…
Overlapping values on y axis in Stata graphArray Hi, is there a way to avoid overlapping of numbers on the y axis …
Subscribe to:
Post Comments (Atom)
0 Response to Sort two variables simultaneously
Post a Comment