The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » coverage of variables v717 and mv717 in Mali V and VI waves
Re: coverage of variables v717 and mv717 in Mali V and VI waves [message #22177 is a reply to message #22174] Tue, 09 February 2021 09:38 Go to previous messageGo to previous message
bcleite is currently offline  bcleite
Messages: 7
Registered: June 2018
Member
Dear,

thanks for your feedback. I illustrate my issue further (with the file names).

My goal is to match household-level information on work occupations from MLCR53FL.dta to the children's recode (MLKR53FL.DTA). I find that about 75% of the households (identified with v000 v001 v002 v007) in the children recode are not present in the couple recode.

An illustration of the code I am using (in Stata):

use MLCR53FL.DTA // load couple recode
gen agric = mv717==10 // dummy for male member working on agriculture
collapse (mean) agric, by(v000 v001 v002 v007) // average male individuals at the household level working in agriculture
save "temp.dta", replace

* merging to children's recode:
use "data/DHS MAL/data occupation/MLKR53DT/MLKR53FL.DTA", clear // load children recode
merge m:1 v000 v001 v002 v007 using "temp.dta" // merging it

tab _merge // about 75% of the households of the children are not present in the couple's recode

Does that expose my issue clearer?

Thanks in advance.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MERGING HIV DATASETS AND WOMEN DATASETS, DHS 2016-2017, HAITI.
Next Topic: Merging variables of mothers' health status in IR file into KR file
Goto Forum:
  


Current Time: Wed Sep 10 01:10:51 Coordinated Universal Time 2025