Statalist


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

st: frequency of continuous variables


From   Man Jia <[email protected]>
To   [email protected]
Subject   st: frequency of continuous variables
Date   Wed, 25 Jun 2008 15:11:13 -0400 (EDT)

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/



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