Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Tabulate frequencies


From   Ryan Stevens <stevrl7@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Tabulate frequencies
Date   Fri, 21 Jun 2013 22:40:09 -0500

-inrange- is what you are looking for. So for 0 to 9, inclusive, you just use:

tab variable if inrange(variable,0,9)

Best,
Ryan

On Fri, Jun 21, 2013 at 9:54 PM, Betty Burton
<Betty.Burton@utsouthwestern.edu> wrote:
> I am trying to get frequencies for a range of data,  e.g.  0 to 4, etc.
>
> I was able to do:
>
> Tabulate variable if variable == 0
>
> But I need the interval 0 to 9, etc.
>
> Thanks
>
> Sent from my iPhone
>
> ________________________________
>
> UT Southwestern Medical Center
> The future of medicine, today.
>
>
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index