Hi Carole,
Thank you! It worked! Is there any way to combine the two Crop_namecodescat variables and the two tot_sold_2 variables to match each of the HHID number?
Thank you! It worked! Is there any way to combine the two Crop_namecodescat variables and the two tot_sold_2 variables to match each of the HHID number?
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str14 HHID double(Crop_namecodescat Crop_namecodescatB tot_sold_2B tot_sold_2) "1013000204" . 1 1.5 . "1021000113" 1 1 3 16 "102100080803" 1 1 24.5 27.5 "102100110201" 1 . . 7 "1021001304" 1 1 28.5 24 "1021002610" 1 1 6 24 "1033000301" 1 1 17 75 "1033000302" 1 1 36 13 "1033000303" 1 1 88 36 "1033000304" 1 1 231 91 "103300030403" 1 1 24 12.5 "1033000305" . 1 46.5 . "1033000307" 1 1 1 170 "1033000309" 1 . . 37 "1033000310" 1 1 11 20 "1033000506" 1 1 70.5 9 "1033000510" 1 1 24 17 "1033000511" 1 1 18 8.5 "1041000210" 1 1 85 15 "1043000402" 1 1 15 8 "1043000403" 1 1 118 83.5 "1043000406" 1 1 12 1.5 "1043000408" 1 . . 5 "1043000409" 1 1 57 22.200000000000003 "104300040908" 1 1 93.79999999999998 72 "1043000601" 1 1 80.5 4 "1043000602" 1 1 63.4 98 "1043000603" 1 1 471 152.5 "1043000607" 1 1 60 25 "1043000610" 1 1 61 4 "1043000611" 1 1 9.5 16 "1043000804" 1 1 14 20 "1043000805" 1 1 21 0 "1043000806" 1 1 115 31 "1043000807" 1 1 7 52 "1043000809" 1 1 3.5 2.5 "1043000810" 1 1 15 6 "1043000811" 1 1 7 7 "1051000110" 1 1 40 38 "105300040605" 1 1 47 34 "1053000410" 1 1 2 4 "1053000802" 1 1 40.5 50 "1053000804" 1 1 18 20 "1053000805" 1 1 85.5 1.5 "1053000806" 1 1 57 33 "1053000808" 1 1 536.5 359 "1053001205" 1 1 80 66.5 "1053001206" 1 1 3.5 0 "1053001208" 1 1 88 140 "1053001210" 1 1 23 0 "1053001503" 1 1 45 72 "1053001505" 1 1 360 385.5 "1053001507" 1 1 151 266 "1053001508" 1 1 60 104 "1053001509" 1 1 58 338 "1053001512" 1 1 48 98 "1053001513" 1 1 170.59999999999997 13.5 "105300151303" 1 1 217 121 "1053001902" 1 1 5 7 "1053001903" 1 1 91 40 "1053001905" 1 1 68 144 "1053001907" 1 1 353 270 "1053001910" 1 1 45.8 13 "1053002302" 1 1 20 54.5 "1053002303" 1 1 79 16 "1053002305" . 1 84 . "1053002306" 1 1 15.75 58 "1053002308" 1 1 17.5 238 "1053002310" 1 1 21.5 171 "1053002602" 1 1 33 0 "105300260602" 1 1 28 52 "1053002609" 1 1 86 126 "1053003003" 1 1 5 4.1 "1053003004" 1 1 14.199999994039533 13 "1053003008" 1 1 3 .5999999999999996 "1053003010" 1 1 80.5 42 "1053003303" 1 1 32 34 "1053003304" 1 1 74 77 "1053003307" 1 1 115 43.5 "1053003309" 1 1 34 26 "1053003312" 1 1 24.5 83 "105300331202" 1 1 17 12 "1063000304" 1 1 53.5 10 "106300030511" 1 1 7 29 "106300030512" 1 1 142.5 135 "1063000307" 1 1 17.799999904632568 0 "1063000308" 1 1 205.5 8 "1063000310" 1 1 213 442 "1063000311" 1 1 155 3 "1063000502" 1 1 5 0 "1063000504" 1 1 5.5 26 "1063000506" . 1 64 . "106300050604" 1 1 20 65 "1063000508" 1 1 9 8 "1063000509" 1 1 91.6 0 "106300051007" 1 . . 12 "106300051008" 1 1 29 1.5 "1063000511" 1 1 14 0 "1063000702" 1 1 8.5 12 "1063000706" 1 1 69 84 end label values Crop_namecodescat Crop_namecodescatlab label def Crop_namecodescatlab 1 "Food Crop", modify label values Crop_namecodescatB Crop_namecodescatBlab label def Crop_namecodescatBlab 1 "Food Crop", modify
Comment