Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Creating Double IDs in a Dataset


From   "Vladimir V. Dashkeyev" <[email protected]>
To   [email protected]
Subject   Re: st: Creating Double IDs in a Dataset
Date   Wed, 28 May 2008 12:04:34 +0400

Maarten, thanks for your help!
--cross-- does exactly what I need.

Thank you,
Vladimir

On Wed, May 28, 2008 at 11:42 AM, Maarten buis <[email protected]> wrote:
> -cross- may be helpful, see -help cross-.
>
> -- Maarten
>
> --- "Vladimir V. Dashkeyev" <[email protected]> wrote:
>
>> Dear Statalist Users,
>>
>> I've got N countries (id1) and need to create id2 which contains N-1
>> countries (country i omitted) for each country in id1. That is, if I
>> have country A, B, and C, I want STATA to create AB, AC, BA, BC, CA,
>> CB pairs, where the first letter corresponds to id1 and the second to
>> id2. So far I've been doing it with STATA --reshape-- command. Can it
>> be done with STATA programming (without using --reshape--)?
>>
>> Any advice would be appreciated.
>>
>> Thank you in advance,
>> Vladimir Dashkeyev
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/support/faqs/res/findit.html
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>>
>
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room Z434
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
>
>      __________________________________________________________
> Sent from Yahoo! Mail.
> A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index