Login or Register
Log in with
Forums
FAQ
Search in titles only
Search in General only
Advanced Search
Search
Home
Forums
Forums for Discussing Stata
General
You are not logged in. You can browse but not post. Login or
Register
by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the
FAQ
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Filtered by:
Clear All
new posts
Kris Ruijgrok
Join Date:
Nov 2019
Posts:
18
#1
Creating unique IDs for Directed Dyads
17 Feb 2022, 09:28
Can anyone advice me on how to generate IDs (identifiers) for directed dyads? Meaning US - Canada dyad should have a different id than Canada - US.
Many thanks!
Andrew Musau
Join Date:
Oct 2014
Posts:
9945
#2
17 Feb 2022, 09:35
Code:
egen wanted= group(country1 country2)
See
Code:
help egen
Comment
Post
Cancel
Kris Ruijgrok
Join Date:
Nov 2019
Posts:
18
#3
17 Feb 2022, 09:39
You are my saviour!
Comment
Post
Cancel
Previous
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment