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]

Re: st: Network - double back relation


From   Simon Falck <[email protected]>
To   [email protected]
Subject   Re: st: Network - double back relation
Date   Wed, 06 Nov 2013 10:45:00 +0100

Simple and magic. Nick, thanks for this excellent solution. Works perfect!

Best,
Simon

On 2013-11-06 10:32, Nick Cox wrote:
gen pair = string(min(source, target)) + " " + string(max(source, target))
bysort pair : drop if _n == 2

*
*   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