The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging Birth's Recode and Household Member Recode
Merging Birth's Recode and Household Member Recode [message #6926] Tue, 04 August 2015 11:47 Go to next message
mousson is currently offline  mousson
Messages: 1
Registered: August 2015
Location: France
Member
Hello everyone,
I am working with all DHS surveys available in African and Asian countries.
I need to merge the Birth's Recode and the Household Member Recode files.
In recent DHS surveys, I used the information on "child line number in the household Schedule" (variable: b16 in the Birth's Recode file) to construct an household member id and match the two datasets.
However, in some surveys (e.g. Bangladesh 1993/1994, 1996, etc.) this information (the variable b16) is missing.
Do anayone know how can I identify the children in the Birth's recode and in the Household member recode?

Thank you.
Re: Merging Birth's Recode and Household Member Recode [message #6981 is a reply to message #6926] Fri, 07 August 2015 10:55 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member
Response from Senior DHS Data Processing Specialist, Noureddine Abderrahim:

If the child's number in the household roster is missing from the individual data it is not possible to merge the household and the children's file.
Re: Merging Birth's Recode and Household Member Recode [message #8675 is a reply to message #6981] Mon, 30 November 2015 03:11 Go to previous messageGo to next message
Jan Eberle is currently offline  Jan Eberle
Messages: 2
Registered: September 2015
Member
Hello everyone,

I am having the same Problem as described above. Wouldn't it be possible to identify Children from BR in PR based on the household [hv000 hv001 hv002], Mother's line number [hv112], age [hv105] and sex [hv104]. The only problem I see so far is that we can not distinguish between children born to the same mother with same age and sex which should however only occasionally be the case (twins). Please correct me if my story does not make sence!

Thank you!
Re: Merging Birth's Recode and Household Member Recode [message #9089 is a reply to message #8675] Wed, 10 February 2016 10:38 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:

We apologize for the long delay in responding to this question from November 30. The strategy you propose, for merging the PR and BR files when b16 is not in the BR file, would work most of the time, but not always. The main problem is that age in the PR file (hv105) and age in the BR file (b8) do not always agree. Below I show a way to assess this problem when b16 is present, using the Ghana 2014 survey. You could also approach it by doing the merge as you propose and then checking b16. But if you really do not have b16 and you use your approach, you will get some false matches and some failed matches.

* Possible strategy to match children age 0-17 in the PR and BR files when b16 is not available.
* The proposed criteria use the age and sex of the child.
* Test on a file for which b16 IS available, and look for correspondences in the proposed criteria.

* Children will only appear in the PR file if their mother is in the PR file.
* Assume we have hv112, but actually it is not included in all surveys.

* sex: hv104 and b4
* age in years: hv105 and b8 (NOTE: do not always agree, even for genuine matches)
* line number in the PR file: hvidx and b16

set more off
use e:\DHS\DHS_data\BR_files\GHBR70FL.dta, clear
drop if b5==0
keep v000 v001 v002 v003 b4 b8 b16
rename v000 hv000
rename v001 hv001
rename v002 hv002
rename b16 hvidx
sort hv000 hv001 hv002 hvidx
save e:\DHS\DHS_data\scratch\BRtemp.dta, replace

use e:\DHS\DHS_data\PR_files\GHPR70FL.dta, clear
drop if hv112==0 | hv112==.
keep hv000 hv001 hv002 hvidx hv104 hv105
sort hv000 hv001 hv002 hvidx
save e:\DHS\DHS_data\scratch\PRtemp.dta, replace

merge hv000 hv001 hv002 hvidx using e:\DHS\DHS_data\scratch\BRtemp.dta
tab _merge

gen sex_agree=0
replace sex_agree=1 if hv104==b4
tab sex_agree _merge,m

* assume that hv104 and b4 will always agree; this is valid because it is equivalent to _merge=3.
keep if sex_agree==1

gen age_agree=0
replace age_agree=1 if hv105==b8
tab age_agree _merge,m

tab hv105 age_agree, row
* The main problem is that hv105 and b8 do not agree for about 8% of children 0-17 (and 6% of children 0-4)

If you apply this same check in other surveys that include b16, such as the Liberia 2013 DHS survey, you find a higher level of disagreement between hv105 and b8. In most of the surveys that do not include b16, and therefore are earlier surveys, merges using the sex and age of the child will be even worse. We strongly recommend that you do not try to merge the PR file with the BR or KR file when b16 is not in the data.

[Updated on: Wed, 10 February 2016 13:14]

Report message to a moderator

Previous Topic: HIV and MIS
Next Topic: Mother's and Father's occupation
Goto Forum:
  


Current Time: Mon Dec 23 06:21:41 Coordinated Universal Time 2024