The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » Mismatch When Merging KR and PR recode files due to disparities in age variables (Investigating umatched records between KR files and PR recode files for Children under 5)
Mismatch When Merging KR and PR recode files due to disparities in age variables [message #29434] Tue, 18 June 2024 11:19 Go to previous message
RobertB is currently offline  RobertB
Messages: 4
Registered: June 2024
Member
Hello all,

I have extracted and merged variables of interest from the PR and KR recode files of Kenya's DHS 2022. However, i have noticed that some records in the
KR file are not in the PR file after accounting for scenarios elaborated in this post https://userforum.dhsprogram.com/index.php?t=msg&th=1900 &goto=28815&#msg_28815.
Upon investigating the records, I notice disparities between the hv105 (household member's age in years) and hc1 (age of children in months) in the PR recode and b8(age of children under 5 in years) and b19(age in children under5 in months) in the KR recode.

For example, I found an instances where a children is recorded to be 5 yrs under hv105 but the corresponding age in months as per hc1 is 50 months indicating that the child should be classified as 4yrs under hv105. Consequently, I ended up with records in KR not matching with PR because I had subset the data in each recode files independently before merging. However, the hc1 value in PR reflects correctly in the b19 and b8 records in the KR record.

My question is which of these two variable/files are correct?
Secondly should i merge the two files first then subset children under 5 using b8/b19 in the KR assuming these are correct?
or should i update the hv105 based on hc1 as shown in the code below and proceed with the merging?

gen age_hsehold = hv105

replace age_hsehold=0 if hc1<12
replace age_hsehold=1 if hc1>=12 & hc1<24
replace age_hsehold=2 if hc1>=24 & hc1<36
replace age_hsehold=3 if hc1>=36 & hc1<48
replace age_hsehold=4 if hc1>=48 & hc1<60

Thanks,

Regards,
Robert B.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ANC components - discrepancies with final report usingGitCode
Next Topic: Variable for Long/Short questionnaire IR
Goto Forum:
  


Current Time: Thu Sep 12 04:25:57 Coordinated Universal Time 2024