Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: How do I produce a dataset based on all possible *triplets* of identifiers within each group? |
Date | Thu, 11 Aug 2011 18:35:23 +0100 |
See also -tuples- (SSC). Nick On Thu, Aug 11, 2011 at 5:54 PM, Austin Nichols <austinnichols@gmail.com> wrote: > Karin Jensen <k.x.jensen@gmail.com>: > 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 <k.x.jensen@gmail.com> wrote: >> 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/