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]

st: RE: Labeling Min and Max Values


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Labeling Min and Max Values
Date   Sun, 7 Mar 2010 17:41:29 -0000

This thread ran through various good ideas. 

Another possibility is -extremes- from SSC. 

. sysuse auto
(1978 Automobile Data)

. extremes mpg make

  +--------------------------------+
  | obs:   mpg   make              |
  |--------------------------------|
  |  26.    12   Linc. Continental |
  |  27.    12   Linc. Mark V      |
  |  11.    14   Cad. Deville      |
  |  12.    14   Cad. Eldorado     |
  |  28.    14   Linc. Versailles  |
  +--------------------------------+

  +-----------------------------+
  |  68.    31   Toyota Corolla |
  |  43.    34   Plym. Champ    |
  |  57.    35   Datsun 210     |
  |  66.    35   Subaru         |
  |  71.    41   VW Diesel      |
  +-----------------------------+

note: 6 values of 14

There are, as you would expect, options to tune variations from the
default. 

Nick 
n.j.cox@durham.ac.uk 

e. lauren


how does one label corresponding Min and Max values (using tabout or
another tabulate command).

Let's say I have a list of 50 countries and corresponding GDP growth
rates, over time.  I would like to use tabout to label the local
minimums and maximums, and indicate the corresponding country name for
each given year. 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index