The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » gender matching interviewer / participant in Zimbabwe & Burundi (Zimbabwe & Burundi appear to have mismatched genders for interviewer/respondent?)
Re: gender matching interviewer / participant in Zimbabwe & Burundi [message #23543 is a reply to message #23534] Mon, 04 October 2021 16:36 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3203
Registered: February 2013
Senior Member
Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

The problem is that when you merged the FW and IR files, (and the FW and MR files) you should have dropped the interviewers who did not match with a woman in the IR file (or a man in the MR file). The following Stata code will work for the FW and IR merge with BU7:
use "C:\Users\26216\ICF\Analysis - Shared Resources\Data\DHSdata\BUFW71FL.DTA", clear
keep fw101 fw105
rename fw101 interviewer_id 
rename fw105 interviewer_sex
sort interviewer_id
save tempfw.dta, replace

use "C:\Users\26216\ICF\Analysis - Shared Resources\Data\DHSdata\BUIR71FL.DTA", clear
keep v028 
rename v028 interviewer_id
sort interviewer_id
merge interviewer_id using tempfw.dta

tab _merge interviewer_sex
keep if _merge==3
tab interviewer_sex


I use an older version of the merge command, but whatever version you use, you need to drop the cases for which _merge is not 3.

Good to see that you are using the FW files!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tabulate Data at Lower Level
Next Topic: DHS ZIMBABWE 2015
Goto Forum:
  


Current Time: Wed Dec 4 01:28:08 Coordinated Universal Time 2024