Home » Data » Merging data files » Merging DHS data in Stata
Re: Merging DHS data in Stata [message #9747 is a reply to message #9730] |
Thu, 12 May 2016 09:08 |
Bridgette-DHS
Messages: 3214 Registered: February 2013
|
Senior Member |
|
|
An additional response from Tom Pullum to the post: Quote:I tried to merge the file of PR and IR, by following.....
The problem is that you have not used the line numbers. The following should work. You do not really need in_IR and in_PR, but since you constructed them, I am keeping them.
use PKPR61FL.DTA, clear
rename hv001 v001
rename hv002 v002
rename hvidx v003
gen in_PR=1
sort v001 v002 v003
save temp.dta
use PKIR61FL.DTA, clear
gen in_IR=1
sort v001 v002 v003
merge v001 v002 v003 using temp.dta
keep if in_PR==1 & in_IR==1
drop _merge in_PR in_IR
[Updated on: Thu, 12 May 2016 09:12] Report message to a moderator
|
|
|
|
|
Merging DHS data in Stata
By: DHS user on Wed, 20 February 2013 11:45
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: kf2349 on Tue, 26 March 2013 16:20
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: Hassen on Sun, 06 May 2018 05:58
|
|
|
Re: Merging DHS data in Stata
By: caragh on Tue, 02 April 2013 18:46
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: owraza on Sat, 28 June 2014 20:38
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: owraza on Wed, 02 July 2014 07:24
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: owraza on Tue, 10 May 2016 15:24
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: owraza on Tue, 10 May 2016 20:33
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: phres110 on Wed, 02 November 2016 13:29
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in SPSS
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
|
|
|
Re: Merging DHS data in Stata
By: pie on Tue, 02 June 2020 06:21
|
|
|
Re: Merging DHS data in Stata
|
Goto Forum:
Current Time: Wed Dec 25 21:27:32 Coordinated Universal Time 2024
|