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
xtnbregPlease, can someone direct me on how I can get e(alpha) after estimating with -xtnbreg- or -meglm- w…
a basic question about -if- programming commandI know what -if- -else- does, but what if there is a -if- but not the -else-? For example: if exp {…
Practice post - Help with macro lists (for a mixed logit model)Summary: I am looking for help with a macro to cycle through a list of variables in groups of two or…
Help with macro lists (for a mixed logit model)Summary: I am looking for help with a macro to cycle through a list of variables in groups of two or…
Generate dummy variablesDear Statalisters, Below is part of my data, which includes fundid, manager name, gender, begin day…
Subscribe to:
Post Comments (Atom)
0 Response to Sort two variables simultaneously
Post a Comment