Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Tabulating extreme values


From   Michael Hills <[email protected]>
To   [email protected]
Subject   Re: st: Tabulating extreme values
Date   Mon, 12 May 2003 22:23:08 +0000

On Mon, May 12, 2003 at 10:04:15PM +0100, SJ Friederich, Economics wrote:
> Dear all,
> 
> Say I have a variable taking on a large number of values and I am only 
> interested in finding out how much each of the top five or ten values 
> represent in terms of frequencies. Is there an obvious way to tabulate only 
> the largest (or smallest) values of a variable? -tabsort- will do it but 
> generate tons of unwanted output (beyond the top values), I am more after 
> something like Nick's -extremes- but for frequencies.

Something like

. tab X if X > x

might work after a few stabs at different values of x.

-- 
Michael 

[email protected]


*
*   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