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: How do I produce a dataset based on all possible *triplets* of identifiers within each group?


From   K Jensen <[email protected]>
To   [email protected]
Subject   Re: st: How do I produce a dataset based on all possible *triplets* of identifiers within each group?
Date   Fri, 12 Aug 2011 14:29:24 +0100

Hi--thanks for the comments on this. For the record, I found that the
easiest thing was to cross the paired dataset with the original (after
renaming) and then to do some judicious dropping.

Thankyou again

Karin

On 11 August 2011 17:54, Austin Nichols <[email protected]> wrote:
> Karin Jensen <[email protected]>:
> Induction.  You can do it once for one pair of identifiers, then do
> egen firstpair=group(id1 id2)
> to make a new single id, and repeat using firstpair and id3.
>
> But see -help cross-
>
> On Thu, Aug 11, 2011 at 12:40 PM, K Jensen <[email protected]> wrote:
>> Hello Statalisters
>>
>> I would like to use similar techniques to this excellent article by
>> Nick Cox to generate all possible *triplets* within a group rather
>> than pairs :- http://www.stata.com/support/faqs/data/pairs.html
>>
>> I am not being very smart here but I can't see how to generalize this.
>> Could anyone give me any tips?
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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