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

st: RE: Keeping Stata from unabbreviating variables


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Keeping Stata from unabbreviating variables
Date   Mon, 17 Jan 2005 20:46:22 -0000

. set varabbrev off 

added 5 October 2004 

. whelp var abbrev 

Nick 
[email protected] 

Andrew Felton
 
> Is there a way to keep Stata from automatically
> un-abbreviating variable names?  I had a situation
> recently where I had a lot of variables with similar
> names.  Some of them had a secondary variable with "p"
> after the name, and sometimes there was just the "p"
> variable -- so I had, e.g., q1, q2, q2p, q3p, q4, etc.
> 
> I wanted to do something like label val q3 q3label --
> and have this fail if there was no q3 in the set, not
> to automatically apply the command to q3p as it would
> as stands.  I ended up using a roundabout method using
> "ds" and looking word-by-word for a match within
> r(varlist) -- but I am curious if there is a better
> way.
> 
> Is there a setting for this?
> 

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