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: tag by category


From   Estrella Gomez <[email protected]>
To   [email protected]
Subject   st: tag by category
Date   Fri, 4 Oct 2013 09:42:56 +0200

Hi

I have a panel that contains 16030 different ids per 28 countries. I
would like to know how many different ids do I have per country,
because not all the ids are available in all countries. I have tried
the command:

by country: egen tag=tag(id)

But tag is not compatible with by. Does anybody know any easy way of doing this?

Thanks,
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