The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Ethiopia » Biomarkers / Malaria
Re: Biomarkers / Malaria [message #3078 is a reply to message #3065] Mon, 13 October 2014 10:16 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 789
Registered: January 2013
Senior Member
Two problems:
1) rename hivline hv003 is renaming to the wrong variable. hv003 is the line number of the respondent to the household questionnaire, not the line number of the woman or man whose data you are interested in. You need to use
rename hivline ha0
where ha0 is the line number of the woman.
2) Your merge should be a 1:1 merge, not a many to one merge.

You will first need to merge the data with the women's biomarker data, then repeat the process using hb0 to merge with the men's biomarker data.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Household land area
Next Topic: Rural Addis PSUs in 2005 Ethiopia Sample
Goto Forum:
  


Current Time: Mon Apr 29 09:15:40 Coordinated Universal Time 2024