Statalist


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

st: RE: identifying observations in one variable that appear in another variable


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: identifying observations in one variable that appear in another variable
Date   Thu, 30 Aug 2007 18:10:09 +0100

There was discussion on the list about this kind
of problem in late 2006. One direct and one
indirect outcome of that are the program -countmatch- on SSC
(install using -ssc- as usual) and some discussion within 

SJ-7-1  pr0029  . . . . . . . . . . . . . . .  Speaking Stata: Making it count
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q1/07   SJ 7(1):117--130                                 (no commands)
        discusses count used with a loop over observations
        or variables

Counting and identifying may not seem quite the same problem, 
but in practice they are really close. 

The help file for -countmatch- is rather detailed and discusses
how to tackle problems like this -- not just using -countmatch-. 
Having worked out some simple tricks, I wanted to be able to remember what they were. 

Nick 
[email protected] 

Dalhia
 
> I am trying to figure out a way to identify all
> observations in one variable that also appear in
> another variable.  I have two variables - shareholder
> name and company name and I'm trying to find all the
> shareholders who are also on my list of companies.  Is
> there a way to do this in 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