Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: frequency of continuous variables


From   Martin Weiss <[email protected]>
To   [email protected]
Subject   Re: st: frequency of continuous variables
Date   Wed, 25 Jun 2008 21:06:48 +0200

-egen, cut- is for you. -ta- afterwards..

Zitat von Man Jia <[email protected]>:

Hi all,

I was wondering how to show frequency of a continuous variable in
several ranges. For example, the variable "wage"measured with dollars
and cents. In my data set, there are lots of values for this variables
since people's wages are usually different from others. The command
"tabulate" shows exactly frequency of each value. That's not what I
want. I'd like to see the following information:

 range of wages        frequency
    <=0.00                ??
  (0.00, 10.00]         ??
  (10.01,20.00]        ??
  (20.01,30.00]        ??
.....................

I know I could find number of observations in each range by using sum
if wage <=0.00
sum if wage >0.00 & wage <=10.00
etc.

But I'm thinking maybe there's simple way to do this. Any suggestions?

Thanks!

Mandy Jia


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/




*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index