Home » Data » Merging data files » STATA codes to merge women and household datasets  
	
		
		
			| Re: STATA codes to merge women and household datasets [message #13961 is a reply to message #13957] | 
			Tue, 30 January 2018 03:28    | 
		 
		
			
				
				
				
					
						  
						Mrinal
						 Messages: 14 Registered: January 2018  Location: Bhubaneswar, India
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		Thank you, Bridgette and Pullum. Actually, I was more interested in merging codes for stata package than appending. However, I managed to construct the merging code for NFHS-2 and is given below. 
 
**Merging household on women dataset**
	**Round 2**
	use "D:\Desktop\dhs\data\nfhs\2\IAHR42FL.DTA", clear
	gen int v001 = hv001
	gen int v002 = hv002
	gen byte v003 = hv003
	sort v001 v002 v003
	save "D:\Dropbox\stata\nfhs\IAHR42FL_sort.DTA", replace
	
	use "D:\Desktop\dhs\data\nfhs\2\IAIR42FL.DTA", clear
	sort v001 v002 v003
	merge v001 v002 v003 using "D:\Dropbox\stata\nfhs\IAHR42FL_sort.DTA"
    
	save "D:\Desktop\dhs\data\nfhs\2\IA_HR_IR_42FL.DTA", replace
 
 
Thanks and regards, 
Mrinal
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		STATA codes to merge women and household datasets
		By:  Mrinal on Fri, 26 January 2018 11:53  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  Mrinal on Tue, 30 January 2018 03:28  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  boyle014 on Thu, 01 February 2018 11:14  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  Mrinal on Mon, 05 February 2018 01:07  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  boyle014 on Mon, 05 February 2018 13:08  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  Gowokani on Wed, 18 April 2018 18:52  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  boyle014 on Fri, 20 April 2018 14:00  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  priyoma on Tue, 23 October 2018 17:18  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  boyle014 on Thu, 01 November 2018 17:20  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  Isabelle on Sun, 11 August 2019 08:48  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  Isabelle on Sat, 24 August 2019 09:56  
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		
	 | 
 
	  | 
	 | 
	
		Re: STATA codes to merge women and household datasets
		By:  vpatil on Sun, 26 April 2020 00:54  
	 | 
  
Goto Forum:
 
 Current Time: Mon Nov 3 20:34:22 Coordinated Universal Time 2025 
 |