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
Change labels form another datasetHi Stataitians. I'm new in Stata. I'm trying to change the label of several variables. I have the d…
looping and exporting multiple regression results into a single tableHello, I am attempting to export the results from multiple univariate regression models estimated us…
Separating big string variablesDear All, I have downloaded the dataset from the scimago journal ranking website. The downloaded da…
getting scatter and lfit to assign the same color for an observationHi All, I am using twoway to generate a scatterplot with an lfit overlay for several individual uni…
importing and appending loopsDear all, I tried appending some files using the following codes. Both worked but there are some pr…
Subscribe to:
Post Comments (Atom)
0 Response to How to find duplicate across variables
Post a Comment