The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Merging wealth index with individual file
Re: Merging wealth index with individual file [message #8405 is a reply to message #8394] Fri, 23 October 2015 18:01 Go to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member


From a previous post:

http://userforum.dhsprogram.com/index.php?t=msg&th=2075& amp;goto=4224&S=851fe28e75716e4e1e9654ca24639320#msg_422 4

*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
 
Read Message
Read Message
Previous Topic: Pooling DHS from same country
Next Topic: Setting svyset for KDHS 2008
Goto Forum:
  


Current Time: Thu Dec 26 15:07:24 Coordinated Universal Time 2024