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 observations
From
William Buchanan <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Count observations
Date
Tue, 23 Jul 2013 08:02:28 -0700
Have you checked the help file for -count-? What you want is a tabulation of your variable of interest:
ta Type-of-fee
To see the frequency and proportion of the values of that variable.
HTH,
Billy
Sent from my iPhone
On Jul 23, 2013, at 7:50, "Miguel Angel Duran Munoz" <[email protected]> wrote:
> Hi, Statalisters. I have the following doubt. My dataset is arranged in
> the following way. I have a variable that identifies firms (say id).
> Another variable describes whether different types of fees (eg, A B C)
> applies to a firm. Accordingly, the dataset looks similar to
>
> Id Type-of-fee
>
> 1 A
> 1 B
> 1 C
> 2 C
> 2 A
> 3 A
> 4 B
> 4 .
> 4 A
>
> I would like to know, for instance, the number of A fees that there are. I
> have used -count- but I am not able to get what I want. Will you please
> help me?
>
> Thanks in advance.
>
> Miguel.
>
>
> *
> * 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/
*
* 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/