Skip to content

Commit fef8648

Browse files
committed
Update urbpov_code.do
1 parent a1f6af3 commit fef8648

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

AS81_urbanpoverty/urbpov_code.do

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,12 @@ save "`cn'HRcoded.dta", replace
106106

107107

108108
* The next step is to merge the HRcoded file above with a KR or PR file
109-
* This is performed by a many to one merge as follows:
109+
* This is performed by a many to one merge with a coded KR file as follows:
110110

111-
*use cnKRcoded.dta, clear
112-
*merge m:1 v001 v002 using "cnHRcoded.dta"
111+
*use `cn'KRcoded.dta, clear
112+
*merge m:1 v001 v002 using "`cn'HRcoded.dta"
113+
*save "`cn'HRKRmerged.dta", replace
113114

115+
116+
* You can check the merge_loop code in the Intro_DHSdata_Analysis\4_Using_Multiple_Files section of this repository for merge code that loops through several countries.
114117

0 commit comments

Comments
 (0)