Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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 <caleb.southworth@gmail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index