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

Re: st: Converting string variable name into numbers


From   Rafal Raciborski <rafal.raciborski@emory.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Converting string variable name into numbers
Date   Fri, 13 May 2005 12:50:26 -0400

-slist- ("smart list") is an alterantive to -list- but displays variables in a
more concise way.  Compare:

. sysuse auto, clear
(1978 Automobile Data)
. list  make foreign in 1/10

     +--------------------------+
     | make             foreign |
     |--------------------------|
  1. | AMC Concord     Domestic |
  2. | AMC Pacer       Domestic |
  3. | AMC Spirit      Domestic |
  4. | Buick Century   Domestic |
  5. | Buick Electra   Domestic |
     |--------------------------|
  6. | Buick LeSabre   Domestic |
  7. | Buick Opel      Domestic |
  8. | Buick Regal     Domestic |
  9. | Buick Riviera   Domestic |
 10. | Buick Skylark   Domestic |
     +--------------------------+

. slist  make foreign in 1/10

     make               foreign
  1. AMC Concord              0
  2. AMC Pacer                0
  3. AMC Spirit               0
  4. Buick Century            0
  5. Buick Electra            0
  6. Buick LeSabre            0
  7. Buick Opel               0
  8. Buick Regal              0
  9. Buick Riviera            0
 10. Buick Skylark            0

.

To install it, try -findit slist-


rafal
================
Rafal Raciborski
Graduate student
Department of Political Science
Emory University
301 Tarbutton Hall
1555 Dickey Drive
Atlanta, GA 30322
404-378-9826 (home)
rafal.raciborski@emory.edu (e-mail)
www.roofoos.net

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