Hi ,
I'm trying to randomly assign villages into two groups, that have an unequal observation in each village. But I want to get as much as equal observation after randomization.
Below is the sample data, I would like to divide villages into group within area
I'm trying to randomly assign villages into two groups, that have an unequal observation in each village. But I want to get as much as equal observation after randomization.
Below is the sample data, I would like to divide villages into group within area
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str5 caseid str23 village_name str8 area byte vill_id float(count_n count_N) "1056" "Jan Mai Kaung" "Kachin" 4 1 33 "1034" "Lekone Ziun" "Kachin" 3 1 22 "1090" "Maina" "Kachin" 5 1 44 "1213" "Mannpya Sanpra" "Kachin" 7 1 20 "1014" "N'jang Dung" "Kachin" 2 1 20 "1142" "NgwiPyaw Sanpra" "Kachin" 6 1 68 "1299" "Shata Pru" "Kachin" 10 1 12 "1249" "Shing Jai" "Kachin" 9 1 44 "1233" "Shwe Zet" "Kachin" 8 1 16 "1001" "Tatkone Sanpra" "Kachin" 1 1 13 end
Comment