Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: how to make list of network ties from long data


From   Caleb Southworth <[email protected]>
To   [email protected]
Subject   st: how to make list of network ties from long data
Date   Fri, 5 Oct 2012 15:21:24 -0700

I would like to make a list of people who are connected on some
identical variable, such as publishing in the same journal.

So I have . list date-magazine

     +----------------------------+
     | date   author     magazine |
     |----------------------------|
  1. | 1920    Woolf         Dial |
  2. | 1921    Woolf      Mercury |
  3. | 1930    Woolf       Nation |
  4. | 1925    Joyce         Dial |
  5. | 1930    Joyce   Transition |
     |----------------------------|
  6. | 1927        L         Dial |
  7. | 1930        L   Transition |
     +----------------------------+

And the desired outcome would be:

Woolf Joyce
Woolf L
Joyce Woolf
Joyce L
L Woolf
L Joyce

That is the pairs of who published in the same journal. I was working
to make a loop that establishes which authors share magazines in
common, but it seems like the long way around. Thanks.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index