Hello,
My name is Omolola.
I need help to sort out my merge issues, I have tried out different techniques, yet the result is not successful
merge 1:m uniqueid using "C:\Users\LOLA\Dropbox\PhD\Post-Field\Data Analysis\Processed Data\M
> erged Edits\hhqedit.dta"
(label uniqueid already defined)
Result Number of obs
-----------------------------------------
Not matched 7,087
from master 7,087 (_merge==1)
from using 0 (_merge==2)
Matched 1,437 (_merge==3)
-----------------------------------------
The variables that uniquely identify my data are migration status, household id, household member id, region, and enumeration area. So, I generated a unique id using this command
///// Concatenate the variables to create a variable
gen unique_id = hh_str + "_" + ea_str + "_" + hhmid_str + "_" + migridpstr + "_" + region
It doesn't merge successfully, am I doing something wrong? I appreciate your support. Thank you.
For context, I am using a survey data - Nigeria IDP survey by World Bank.
Thank you
My name is Omolola.
I need help to sort out my merge issues, I have tried out different techniques, yet the result is not successful
merge 1:m uniqueid using "C:\Users\LOLA\Dropbox\PhD\Post-Field\Data Analysis\Processed Data\M
> erged Edits\hhqedit.dta"
(label uniqueid already defined)
Result Number of obs
-----------------------------------------
Not matched 7,087
from master 7,087 (_merge==1)
from using 0 (_merge==2)
Matched 1,437 (_merge==3)
-----------------------------------------
The variables that uniquely identify my data are migration status, household id, household member id, region, and enumeration area. So, I generated a unique id using this command
///// Concatenate the variables to create a variable
gen unique_id = hh_str + "_" + ea_str + "_" + hhmid_str + "_" + migridpstr + "_" + region
It doesn't merge successfully, am I doing something wrong? I appreciate your support. Thank you.
For context, I am using a survey data - Nigeria IDP survey by World Bank.
Thank you
Comment