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
Splitting a data set into four data sets over all observations but keepin all variables for each splitted data setHi All, I am using a data set which contains more than 50 variables and 0.36 observations. I need to…
Group and label variables (perhaps using -rangejoin-)Hello, my following problem seems to me as being pretty complicated. However, I will try to explain…
Generating categorical dummy variableHi all, I need some help with this. I would like to generate a new binomial variable EDUCATION equ…
Problem with opening the datasetHi Stata community. I am trying to open a .dta dataset, which I have been working on for the last fo…
Clustering Standard Errors helpHi, I want to check whether there is a need to cluster my results. I asked this question before with…
Subscribe to:
Post Comments (Atom)
0 Response to Sort two variables simultaneously
Post a Comment