Hi,
I have a dataset with respondents from different geo locations(District).
E.g,
I want to randomly draw 3 observations from District A and 2 observations from District B. What is the command in stata to attain the following sample?
Thanks in advance.
I have a dataset with respondents from different geo locations(District).
E.g,
| ID | District | Age |
| 1 | A | 10 |
| 2 | A | 12 |
| 3 | A | 15 |
| 4 | B | 16 |
| 5 | B | 17 |
| 6 | B | 18 |
| 7 | A | 19 |
| 8 | B | 20 |
| 9 | A | 21 |
| 10 | B | 32 |
I want to randomly draw 3 observations from District A and 2 observations from District B. What is the command in stata to attain the following sample?
Thanks in advance.

Comment