The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Wealth Index » Ethiopia 2000 wealth indicator merging
Re: Ethiopia 2000 wealth indicator merging [message #4224 is a reply to message #4222] Mon, 20 April 2015 20:14 Go to previous messageGo to previous message
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?
 
Read Message
Read Message
Read Message
Previous Topic: Comparative Wealth Index for 2010 Burundi
Next Topic: Regional Dummy in the Wealth Index
Goto Forum:
  


Current Time: Wed Dec 25 21:25:45 Coordinated Universal Time 2024