Hello! I have a set of data with 943 observations each with an ID and two binary variables. The data looks like so...
and so on. I'm trying to use -randtreat- to randomly assign these 943 observations to 14 different treatment groups, 13 of which have to be exactly 70 observations and 1 of which has to have the rest of the observations (the remaining 33). However, when I run this code -
- I instead get 14 groups that are evenly split amongst themselves, with ~67 observations per group. Does anyone know how to fix this to get the proper split?
| id | var1 | var2 |
| 0000 | 1 | 0 |
| 0001 | 0 | 1 |
| 0002 | 0 | 0 |
| 0003 | 1 | 1 |
Code:
randtreat, gen(week) setseed(1234) strata(pricemedian jikokoa) misfits(strata) unequal(70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 70/943 33/943) replace

Comment