Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: renaming an invalid varname |
Date | Wed, 16 Apr 2014 18:30:53 +0100 |
See now http://www.statalist.org/forums/forum/general-stata-discussion/general/1686-bad-variable-names Nick njcoxstata@gmail.com On 16 April 2014 16:45, Nick Cox <njcoxstata@gmail.com> wrote: > See also > > http://www.stata.com/statalist/archive/2014-02/msg00387.html > > for a similar problem and a way to address it. > Nick > njcoxstata@gmail.com > > > On 16 April 2014 12:53, Nick Cox <njcoxstata@gmail.com> wrote: >> The key here is that Stata is not actually using the name ^ss02101 as >> a variable name: how could it, given that such a name is invalid? >> >> It's using some other version of the name. >> >> There are various solutions but the one I would try first is not >> anything that requires you to type the variable name. Try changing the >> name in -varm- or the Data Editor. >> Nick >> njcoxstata@gmail.com >> >> >> On 16 April 2014 12:45, SEZER ALCAN <sezer.alcan@hazine.gov.tr> wrote: >>> Stata does not allow me to rename an invalid varname. How do a change the varnames? I use stata12. >>> The data set I have been using, have some variables with invalid names such as (Áal˝˛012) or (ˆss02101). When I try to rename these variables I get the following message. >>> >>> rename ˆss02101 oss02101 >>> ˆss02101 invalid name >>> r(198); >>> >>> Any suggestion to rename already invalid varnames? >>> Thanks >>> Sezer Alcan >>> >>> * >>> * For searches and help try: >>> * http://www.stata.com/help.cgi?search >>> * http://www.stata.com/support/faqs/resources/statalist-faq/ >>> * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/