. list hv271 hv270 hhwealth if hv270 != hhwealth +-----------------------------+ | hv271 hv270 hhwealth | |-----------------------------| 7064. | -66470 poorer 1 | 7743. | 40088 richest 4 | 7973. | -63769 poorer . | 11711. | -14147 richer 3 | +-----------------------------+
gen ppl=hv012 replace ppl=hv013 if hv012==0 gen hhweight = (hv005*ppl)/1000000