The answer to your question: None. I will try to explain why.
The link you mention covers only one type of merge that is possible with Stata, namely: one-to-many combining.
merge 1:m varlist using filename
Other types of merging are possible:
Individual merge on the specified key variables
merge 1:1 varlist using filename
Multivalued merge on specified key variables
merge m:1 varlist using filename
Many-to-many combination of specified key variables
merge m:m varlist using filename
Individual merger by observation
merge 1:1 _n using filename
Details, explanations and examples can be found in help merge .
If you do not know if the observations are unique in the data set, you can perform the following check:
bysort idvar: gen N = _N
ta N
If you find N values โโthat are greater than 1, you know that observations are not unique to idvar.
This is actually the new syntax for the merge command that was introduced with Stata 11. Before Stata 11, the merge command was a bit simpler. You just needed to sort the data, and then you could:
merge varlist using filename
By the way, you can still use this old syntax in Stata 11 or higher.
user872324
source share