Hello,
I am using StataMP13 and have a question regarding the merging of two datasets.
My master dataset has 59 variables and 624,929 observations. Two of the variables are County and Year.
My secondary dataset has 8 variables and 1,785 observations, each observation corresponds to a County and Year.
I am attempting to combine the two datasets so that each observation in my master dataset includes the corresponding data for the matching County and Year from the secondary dataset. I ran merge 1:m wua_year county using "..." and received error message r(459): variables wua_year county do not uniquely identify observations in the master data.
I understand that the purpose of the merge command is to match observations by uniquely identifying observations in the master dataset. Is there a way to merge the datasets by applying the each observation for County, Year to multiple observations in my master dataset?
Thank you.
I am using StataMP13 and have a question regarding the merging of two datasets.
My master dataset has 59 variables and 624,929 observations. Two of the variables are County and Year.
My secondary dataset has 8 variables and 1,785 observations, each observation corresponds to a County and Year.
I am attempting to combine the two datasets so that each observation in my master dataset includes the corresponding data for the matching County and Year from the secondary dataset. I ran merge 1:m wua_year county using "..." and received error message r(459): variables wua_year county do not uniquely identify observations in the master data.
I understand that the purpose of the merge command is to match observations by uniquely identifying observations in the master dataset. Is there a way to merge the datasets by applying the each observation for County, Year to multiple observations in my master dataset?
Thank you.
Comment