I am struggling to perform a 1:m merge on two merge variables that are both string variables. When I attempt the merge, I get the familiar "variables FirstName LastName do not uniquely identify observations in master data" error. So, of course, I run the duplicates command to find my duplicates and figure out a solution.
The problem is that duplicates flag zero duplicates based on the two merge variables. My hunch is that something is going wrong with how these string variables are being stored. One is of the type str35 and the other is strL - I'm not very familiar with strL types.
Does anyone have an idea of why my merge command is flagging duplicates but the duplicates command is not?
Related Posts with merge vars do not uniquely identify observations in master data - but no duplicates found
Error with Probit: outcome does not varyDear Statalists, I create a variable = 1 in case of treatment and = 0 in case of no treatment. Then…
White-Arellano estimatorsHi everyone, I have a panel dataset (an unbalanced one) and I have a question about robust standard …
Graph with 3 different curves in the same graphHey, I want to know if I can do the following and if yes how; I have monthly household data with '…
Make a normalised distributionHi all, I have elaborated data in the following way: Code: * Example generated by -dataex-. To in…
ADF test results are nonstationary with constant and trend termHI everyone, I have run the ADF unit root test for my variable "log_CO2" and the result shows that i…
Subscribe to:
Post Comments (Atom)
0 Response to merge vars do not uniquely identify observations in master data - but no duplicates found
Post a Comment