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]
RE: st: count nr of countries
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: count nr of countries
Date
Wed, 9 Feb 2011 16:53:42 +0000
-group()- is strictly an -egen- function, not an option.
Or: -tab country- and -ret li-.
Nick
[email protected]
Justina Fischer
generate a separate id for your countries, using egen with the group-option, and the simply count your observations of your new id-variable
Tharshini Thangavelu
> I have a panel dataset where I follow firms cross countries over the time
> period 1998-2010. I have generated id and wants to count
> the nr of countries in my data set. How I do this?
*
* 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/