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

st: RE: variable labels


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: variable labels
Date   Mon, 30 Dec 2002 18:34:58 -0000

Traci A Schlesinger
> 
> when using stata for windows, variable labels generally 
> appear next to
> the variable names in the variable box.  however, this does 
> not happen
> when i use my stata7 package which is on my laptop.  

... 

> i am using national 
> criminal reporting data, and the variable names are simply v1 . . .
> v107, but they have descriptive variable labels, which i 
> can see when i
> open the data on a university computer with stata, and it 
> would be very
> helpful if they were visible.  alternately, is there a command that
> would rename my variables there variable labels?

Several answers, but I don't think anyone picked up 
on the last question, which I take to want some 
kind of renaming based on variable labels. 

To do this in general you would need to 
zap embedded spaces and any other characters not 
allowed in variable names, and to watch 
length of names (and possibly non-unique 
abbreviations). However, there could be specific 
short-cuts, but not knowing about the dataset 
you use I can't advise very helpfully without 
more detail. 

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