Re: Ethiopia 2000 wealth indicator merging [message #4224 is a reply to message #4222] |
Mon, 20 April 2015 20:14 |
Reduced-For(u)m
Messages: 292 Registered: March 2013
|
Senior Member |
|
|
Looking over an old do file i just did this:
*begin using the individual recode (I used child, but should still work)
use child.dta
*generate the variable that corresponds to the wealth data
gen whhid = substr(caseid, 1, 12)
*merge
merge m:1 whhid using wealth.dta
But that is merging from many (in the child data) to one (in the wealth data). Are you starting with the individual data, generating whhid there, and then merging in the wealth data? Or are you trying to go the other way?
|
|
|