I am trying to merge certain variables from different files into the master data file. I have 9 waves of panel data each corresponding to a different year in each of 4 different stata files. Each stata file contains the same individuals over the same years. The problem as it is very common is that certain variables of interest are located in different files, (ie different surveys done of the same individuals are put into different files) thus in order to run my regression I need other variables for the same individuals not located in the master file. For example: in measuring the effect of education on wages I have the wage and education variables in my master data but I need to include the gender variable located in a different file. Both files have the same waves(same years) and same(almost) individuals.
When I run :
merge 1:1 gender2008 using dataset.dta
I keep getting an error 111 where the gender2008 or any other variable I try for that matter is not found.
Any suggestions?
Thanks in advance
When I run :
merge 1:1 gender2008 using dataset.dta
I keep getting an error 111 where the gender2008 or any other variable I try for that matter is not found.
Any suggestions?
Thanks in advance
Comment