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]

st: Identify observations within a variable


From   Estrella Gomez <[email protected]>
To   [email protected]
Subject   st: Identify observations within a variable
Date   Mon, 22 Apr 2013 12:26:26 +0200

Hi

I am cleanning a music dataset and one of the problems I have is that
there are many cases in which there two different origin countries for
the same artist. For instance, Shakira appears as from USA, Colombia,
Netherlands and UK.

I want to assign one unique origin country to each artist based on the
number of records. I have 94,330,173 observations, so I can't do it
manually.

My problem is that I don't know how to tell Stata that I want to see
those cases in which there are different countries for the same
artist. Both are string variables. Once I identify those
"wrong"observations,  I would select one unique country for each
artist according to the number of Total sales, which is numerical
variable

Any idea?

Thanks in advance,
Estrella
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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