The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging DHS Pakistan 2017-18 (Merging DHS Pakistan 2017-18 )
Merging DHS Pakistan 2017-18 [message #19666] Tue, 28 July 2020 09:26 Go to next message
HinaK is currently offline  HinaK
Messages: 1
Registered: July 2020
Member
Hi,

Please can you provide some guidance on merging the DHS 2017-18 for Pakistan.

To merge the household and child datasets I'm using the following code:

gen hh_uniqID=(hv001*100)+hv002 //household data (HH recode dataset)
gen hh_uniqID=(v001*100)+v002 // child (Children recode dataset)
merge m:1 hh_uniqID using householddata.dta

However, I would like some guidance on merging the "Household member recode" and "Births recode" datasets.

Many thanks.
Re: Merging DHS Pakistan 2017-18 [message #19712 is a reply to message #19666] Tue, 04 August 2020 18:34 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3214
Registered: February 2013
Senior Member
There have been several posts on merging. Please search the forum and also reference the PDF of the Guide to DHS Statistics, search for "Matching and Merging Datasets", and see the examples in this section.
Previous Topic: Merge DHS dataset
Next Topic: Merging DHS data in R
Goto Forum:
  


Current Time: Mon Dec 23 11:27:21 Coordinated Universal Time 2024