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

Re: st: frequency of continuous variables

From   Martin Weiss <>
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 <>:

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

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


Mandy Jia

*   For searches and help try:

*   For searches and help try:

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