Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: tag by category

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


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?

*   For searches and help try:

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