Statalist


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

RE: st: ordered tabulation with only top values shown


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: ordered tabulation with only top values shown
Date   Thu, 19 Mar 2009 15:51:30 -0000

-fre- is excellent for this and related problems. 

But there are other solutions too which have been around for some time.  

-modes- from SJ does what Rodrigo wants. So would -groups- from SSC. 

-groups- has one advantage over -modes- or -fre-: it extends to frequencies of two or more variables considered jointly. 

Nick 
[email protected] 

Martin Weiss

One could think of constructs with the -in- qualifier here, but Maarten`s answer is unbeatable: -ssc d fre- takes care of both ordering and subsetting the values...

Rodrigo Briceño

> Thanks Maarten and Martin. To clarify my opaque need to Martin what I
> need is that the table produced only shows the first ten values (the
> highest 10 values or any other small figure) to avoid having really
> long tables of results and further editing (erasing anything below the
> 10th greatest value). It is more clear now?
> 
> 2009/3/18 Maarten buis <[email protected]>:
> >
> > --- Rodrigo Briceno wrote:
> >> I recently discovered the use of the command
> >> tab with the option sort in order to get an ordered table of
> >> frequencies (descendant order).
> >> I am wondering if I can use an additional option in order to show only
> >> some specific set of results, since some categories on my tables are
> >> really long (more than 256 categories in one case).
> >> Also I have the doubt if tab could be combined with an option in order
> >> to get ascendant frequencies.
> >
> > Yes, see -ssc describe fre- for Ben Jann's -fre- package.
> >

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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