Statalist


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

st: Interval Tabbing?


From   Rachel <[email protected]>
To   statalist <[email protected]>
Subject   st: Interval Tabbing?
Date   Wed, 23 Jan 2008 13:46:41 -0500

What I'm looking to do is put a histogram in table form: That is, I'd
like a table showing me how many (and what percentage) of a variable
falls within intervals whose width I specify.

So for example, if X has values 2,3,5,7, and I specified an interval
of width for, the resulting table would look something like:

X range   Perc
0-4         50%
>4-8         50%
8-12          0%

Is there any Stata command (or user-written module) that can do this?

Thanks,
Rachel
*
*   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