Dear all,
Every time, I run my do-file in both Stata 15 and 17, I get different results for the same dataset, in the same do-file, using the same machine. I have about 11 different sections that I shall merge together for the final analysis. In each section, the data is sorted using the "household_id" variable. I tried with "sort household_id, stable", but it does not solve my problem. Here comes my data. I would appreciate your help in advance. Thank you.
dataex household_id diarrhea_2wks diarrhea_4wks insurance lntotal_med_fee lnwaterscarcity Rf_shock Temp_shock
Every time, I run my do-file in both Stata 15 and 17, I get different results for the same dataset, in the same do-file, using the same machine. I have about 11 different sections that I shall merge together for the final analysis. In each section, the data is sorted using the "household_id" variable. I tried with "sort household_id, stable", but it does not solve my problem. Here comes my data. I would appreciate your help in advance. Thank you.
dataex household_id diarrhea_2wks diarrhea_4wks insurance lntotal_med_fee lnwaterscarcity Rf_shock Temp_shock
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str14 household_id byte diarrhea_2wks float diarrhea_4wks byte insurance float(lntotal_med_fee lnwaterscarcity Rf_shock Temp_shock) "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601002" . 0 0 . 0 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" 0 0 0 . .6251451 5.127945 5.001626 "01010101601017" . 0 0 . .6251451 5.127945 5.001626 "01010101601017" 0 0 0 . .6251451 5.127945 5.001626 "01010101601017" 0 0 0 . .6251451 5.127945 5.001626 "01010101601034" . 0 0 5.703794 0 5.127945 5.001626 "01010101601049" . 0 0 . 2.464003 5.127945 5.001626 "01010101601049" . 0 0 4.787561 2.464003 5.127945 5.001626 "01010101601049" . 0 0 4.6052704 2.464003 5.127945 5.001626 "01010101601049" . 0 0 4.6052704 2.464003 5.127945 5.001626 "01010101601064" . 0 1 0 0 5.127945 5.001626 "01010101601064" . 0 1 0 0 5.127945 5.001626 "01010101601064" . 0 1 0 0 5.127945 5.001626 "01010101601064" . 0 1 0 0 5.127945 5.001626 "01010101601080" . 0 1 . 1.8184465 5.127945 5.001626 "01010101601080" . 0 1 . 1.8184465 5.127945 5.001626 "01010101601080" . 0 1 0 1.8184465 5.127945 5.001626 "01010101601080" . 0 1 0 1.8184465 5.127945 5.001626 "01010101601087" . 0 1 0 .8813736 5.127945 5.001626 "01010101601087" . 0 1 0 .8813736 5.127945 5.001626 "01010101601087" . 0 1 0 .8813736 5.127945 5.001626 "01010101601087" 0 0 1 0 .8813736 5.127945 5.001626 "01010101601087" 0 0 1 0 .8813736 5.127945 5.001626 "01010101601087" 0 0 1 0 .8813736 5.127945 5.001626 "01010101601101" . 0 0 4.382183 1.047593 5.127945 5.001626 "01010101601101" . 0 0 5.135833 1.047593 5.127945 5.001626 "01010101601101" . 0 0 3.689504 1.047593 5.127945 5.001626 "01010101601101" 0 0 0 4.0256705 1.047593 5.127945 5.001626 "01010101601101" . 0 0 3.689504 1.047593 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" 0 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" 1 0 1 0 1.4436355 5.127945 5.001626 "01010101601116" . 0 1 0 1.4436355 5.127945 5.001626 "01010101601131" . 0 0 5.991471 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 6.214612 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 5.991471 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 5.298342 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 5.703794 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 6.396933 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 6.429722 2.0947125 5.127945 5.001626 "01010101601131" . 0 0 6.429722 2.0947125 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" 0 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010101601146" . 0 1 0 1.3258978 5.127945 5.001626 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" . 0 0 0 .24746646 5.22204 4.802176 "01010201403001" 0 0 0 5.991471 .24746646 5.22204 4.802176 "01010201403001" 0 0 0 5.991471 .24746646 5.22204 4.802176 "01010201403011" . 0 0 4.6052704 .4812118 5.22204 4.802176 "01010201403011" . 0 0 8.006368 .4812118 5.22204 4.802176 "01010201403011" . 0 0 . .4812118 5.22204 4.802176 "01010201403011" . 0 0 6.08678 .4812118 5.22204 4.802176 "01010201403011" . 0 0 . .4812118 5.22204 4.802176 "01010201403011" . 0 0 . .4812118 5.22204 4.802176 "01010201403011" . 0 0 . .4812118 5.22204 4.802176 "01010201403016" . 0 0 . .24746646 5.22204 4.802176 "01010201403016" . 0 0 0 .24746646 5.22204 4.802176 "01010201403016" . 0 0 . .24746646 5.22204 4.802176 "01010201403016" . 0 0 . .24746646 5.22204 4.802176 "01010201403016" 0 0 0 . .24746646 5.22204 4.802176 "01010201403016" 0 0 0 . .24746646 5.22204 4.802176 "01010201403016" 0 0 0 . .24746646 5.22204 4.802176 "01010201403016" 0 0 0 4.382183 .24746646 5.22204 4.802176 "01010201403026" . 0 0 . .4812118 5.22204 4.802176 "01010201403026" . 0 0 . .4812118 5.22204 4.802176 "01010201403031" . 0 0 5.298342 .9047485 5.22204 4.802176 "01010201403031" . 0 0 6.32794 .9047485 5.22204 4.802176 "01010201403031" . 0 0 5.703794 .9047485 5.22204 4.802176 "01010201403031" . 0 0 5.991471 .9047485 5.22204 4.802176 "01010201403031" . 0 0 4.6052704 .9047485 5.22204 4.802176 "01010201403031" . 0 0 4.6052704 .9047485 5.22204 4.802176 "01010201403031" . 0 0 5.991471 .9047485 5.22204 4.802176 "01010201403031" 1 0 0 5.298342 .9047485 5.22204 4.802176 end label values diarrhea_2wks diarrhea_2wks label def diarrhea_2wks 0 "no", modify label def diarrhea_2wks 1 "yes", modify label values diarrhea_4wks diarrhea_4wks label def diarrhea_4wks 0 "no", modify label values insurance insurance label def insurance 0 "no", modify label def insurance 1 "yes", modify
Comment