The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Height and Weight Files
Re: Height and Weight Files [message #3305 is a reply to message #3283] Wed, 19 November 2014 14:36 Go to previous messageGo to previous message
rejone4@emory.edu is currently offline  rejone4@emory.edu
Messages: 8
Registered: November 2014
Location: United States
Member
thanks that worked well for most datasets. However there are a few HW files that have hwhhid as the variable for case identification.

For example, Armenia 2005 has this type of setup. When I used the following code:

*rename variables and sort data for merging
ren hwhhid caseid
ren hwline midx
sort caseid midx
save "AMHW01_temp.dta", replace


*sort the children's recode data and then merge
use "H:\Thesis\Armenia_2010\Armenia_2005(V)\AMKR42FL.dta", clear
sort caseid midx
merge 1:1 caseid midx using "H:\Thesis\Armenia_2010\Armenia_2005(V)\AMHW01_temp.dta"


It did not match the data anymore. Is there something that has to be done differently with these files?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Correct numbers for merging the household and individual files of the 2001 DHS Nepal
Next Topic: Merging Household+Female+Male files
Goto Forum:
  


Current Time: Tue Apr 30 06:02:32 Coordinated Universal Time 2024