Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: count same strings among variables


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: count same strings among variables
Date   Mon, 13 Jul 2009 17:27:20 +0200

<> 

This FAQ may be helpful:


http://www.stata.com/support/faqs/data/distinctstrings.html


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Antonio
Acconcia
Gesendet: Montag, 13. Juli 2009 17:20
An: [email protected]
Betreff: st: count same strings among variables

Hi, Statalist,

I have a number of variables, say x1-x10, with different number of  
observations all containing strings. I need to select those strings  
that (or simply to count how many strings) are present in x1-x2,  
x1-x3, and so on; how many are present in x2-x3, x2-x4, and so on  
....but not in x1 ..... The same string can appear at different lines  
(say observation 1 for x1 and observation 3 for x2).

I'm writing to ask whether there is a way to do this.

Thanks a lot.

Antonio


   ---------------------------------------
   Antonio Acconcia
   CSEF - Dipartimento di Economia
   Università di Napoli Federico II
   via Cinthia, 45 (Monte S.Angelo)
   80126 Napoli - Italia
   Tel: +39-81- 675096
   Fax: +39-81-7663540


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index