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   Austin Nichols <[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   Thu, 11 Aug 2011 12:54:06 -0400

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/


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