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

RE: st: RE: RE: RE: suggestion for Stata 8: value labels for string variables


From   "Nick Winter" <nwinter@policystudies.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: RE: RE: suggestion for Stata 8: value labels for string variables
Date   Fri, 25 Oct 2002 13:30:01 -0400

> -----Original Message-----
> From: Erik Ø. Sørensen [mailto:sameos@mac.com] 
> Sent: Friday, October 25, 2002 1:24 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: RE: RE: RE: suggestion for Stata 8: value 
> labels for string variables
> 
> 
> On fredag, okt 25, 2002, at 13:04 America/Montreal, Nick Winter wrote:
> 
> > It seems to me that the answer here is to store the "labels" in a
> > separate string variable.  Then you can use the short name 
> variable or
> > the long name variable (ie, the "value" or the "label") as you like.
> 
> This may be fine if possible, but for those of us who regularly work 
> with millions of observations, it is often not feasible. That 
> it is not 
> possible to label string values is a shortcoming that should be fixed 
> in future releases.

Possibly.  But storing the labels as a second variable of type "int",
which itself has a variable label, is a solution that works now, and
that adds relatively little memory overhead to a file, beyond what the
labels themselves inevitably add.

--Nick Winter

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