I have data in the following format:
Month Date Time1 Time2 Time3
Jan 01/01/2018 1234 2345 3456
Jan 02/01/2018 1234 2346 3457
Jan 03/02/2018 1234 2346 3145
Feb 03/02/2018 1234 2347 3458
Feb 04/02/2018 1235 2398 3456
March 04/03/2018 1235 2347 3456
March 01/03/2018 1236 2345 3456
March 02/03/2018 1234 2567 3897
Feb 02/02/2018 1236 2346 3478
I want to randomly select observations so that I get two sample dates and numbers from each month and time slot. For example, for Jan
, Time 1
I would like to get: 01/01/2018
, 1234
and 02/01/2018
, 1234
.
How can I do this in Stata?