Hi,
I have a dataset look like this
indid villageid
3521 1
3521 1
3861 1
3861 1
3861 1
70011 1
70011 1
70011 1
70011 1
70011 1
3763 2
3763 2
3763 2
3763 2
3463 2
3463 2
3464 2
3464 2
3464 2
5464 3
5464 3
5464 3
5464 3
2464 3
2464 3
7464 3
7464 3
7464 3
How to select the first two indids in each villageid without reshape wide the data?
Thank you!
I have a dataset look like this
indid villageid
3521 1
3521 1
3861 1
3861 1
3861 1
70011 1
70011 1
70011 1
70011 1
70011 1
3763 2
3763 2
3763 2
3763 2
3463 2
3463 2
3464 2
3464 2
3464 2
5464 3
5464 3
5464 3
5464 3
2464 3
2464 3
7464 3
7464 3
7464 3
How to select the first two indids in each villageid without reshape wide the data?
Thank you!
Comment