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

st: -hlist- on SSC


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: -hlist- on SSC
Date   Fri, 12 Mar 2004 14:21:52 -0000

Thanks to Kit Baum, a little utility -hlist- has been 
added to SSC. Stata 8 is required. 

This formalises, and extends, some code posted on 
this list in response to a question by Stefan Lachenmaier 
on 8th March. 

Two examples should suffice to give the flavour: 

. hlist mpg if foreign

  +---------------------------------------------------------------------------------+
  | obs: | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 |
  |  mpg | 17 | 23 | 25 | 23 | 35 | 24 | 21 | 21 | 25 | 28 | 30 | 14 | 26 | 35 | 18 |
  |---------------------+-----------------------------------------------------------|
  |    68    |    69    |    70     |    71     |    72     |    73     |    74     |
  |    31    |    18    |    23     |    41     |    25     |    25     |    17     |
  +---------------------------------------------------------------------------------+

. sort weight 

. hlist mpg weight in -10/l 

  +------------------------------------------------------------------------------+
  |   obs:     65     66     67     68     69     70     71     72     73     74 |
  |------------------------------------------------------------------------------|
  |    mpg     14     16     21     14     15     14     21     14     12     12 |
  | weight   3900   4030   4060   4060   4080   4130   4290   4330   4720   4840 |
  +------------------------------------------------------------------------------+

The help file also carries a rather gloomy warning: 

hlist will be expensive or absurd or impossible with 
large numbers of variables or observations. Users are 
urged to consider what they are asking.




Nick 
[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