You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AS81_urbanpoverty/urbpov_code.do
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -106,9 +106,12 @@ save "`cn'HRcoded.dta", replace
106
106
107
107
108
108
* 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:
110
110
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
113
114
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.
0 commit comments