Hello,
I am relatively new to stata, but I have encountered a problem of not being able to find duplicates across variables. I have a table like this:
id Start Destination
1 China US
2 US Japan
3 US China
4 Italy Spain
and I would like to find a list of all the observations that have another's start as destination and destination as start. I would like a result like this:
1 China US
3 US China
Thanks a ton to anyone that would help! I'd really appreciate it : )
Related Posts with How to find duplicate across variables
Why does Stata show different results when I use -mlogit- versus -logit-?I have an outcome variable with three categories, and I noticed that when I run a multinomial logist…
crossing error bars in a twoway figureHi all I am trying to display error bars for the y variable and x variable in the same figure - one…
how to reshape?Dear All, How can I reshape the following data into a standard long format panel data? Code: // htt…
How to plot vertical densities for each variable?Hello! Do you know how I can graph estimated densities vertically on the same graph? Something of th…
IF condition within a loop depending on the iterated value of the loopI would appreciate any help that you can give on my question below. For example, I have the followi…
Subscribe to:
Post Comments (Atom)
0 Response to How to find duplicate across variables
Post a Comment