The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Kenya » Merging dataset for MIS 2015 Survery on stata
Re: Merging dataset for MIS 2015 Survery on stata [message #22022 is a reply to message #22020] Wed, 20 January 2021 15:01 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3120
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

You need to include line number. In the PR file that's hvidx and in the IR file it's v003. Just change to the following:

use "/Users/t/Desktop/Actual dataset/PR2.DTA"

rename hv001 v001
rename hv002 v002
rename hvidx v003
sort v001 v002 v003
save "/Users/Desktop/Actual dataset/PR2.DTA", replace

use "/Users/t/Desktop/Actual dataset/IR.DTA"
sort v001 v002 v003

merge m:1 v001 v002 v003 using PR2
 
Read Message
Read Message
Previous Topic: Indicator for financial literacy and savings
Next Topic: MIS 2015
Goto Forum:
  


Current Time: Fri Aug 2 19:13:56 Coordinated Universal Time 2024