Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: generating value labels


From   "Doogar, Rajib" <[email protected]>
To   <[email protected]>
Subject   st: RE: generating value labels
Date   Wed, 21 Mar 2007 00:26:01 -0500

Never mind, Nick Cox's had pointed me to - labmask - the last time I
asked about this [which I forgot all about].  
Of course I find his response about 2 minutes *after* I posted the
query. :(

Apologies.  I hope labmask will fix the problem.  If not I shall post
again, but for now please disregard the query.  

r.

> -----Original Message-----
> From: Doogar, Rajib 
> Sent: Wednesday, March 21, 2007 12:14 AM
> To: '[email protected]'
> Subject: generating value labels
> 
> From some data organized as follows, I want to generate value 
> labels for Grp using the strings in Make.    
> 
> Grp Obs  Make 
> 1    1   GM
> 1    2   GM
> 2    1   Ambassador
> 3    1   Mazda
> 3    2   Mazda
> 3    3   Mazda
> ...
> 
> `encode Make, gen(var1) label (foo)' does not work because 
> Grp numbers are not in alphabetical order of Make.
> 
> Any advice?  Sorry if this is a FAQ. 
> 
> Thanks.
> 
> r.
> 
> Rajib Doogar,
> Department of Accountancy,
> The University of Illinois at Urbana-Champaign
> 1206 S. Sixth Street, Champaign, IL 61820
> Ph: 217.244.8083, Fax: 217.244.0902
> http://www.cba.uiuc.edu/doogar
> 
> 

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