Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Variable name length limit


From   Timothy Mak <tshmak@hku.hk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: Variable name length limit
Date   Wed, 19 Jun 2013 15:36:04 +0800

<>

Oops I think I'm mistaken about the long variable name feature in Stata 13. Stata 13 allows long strings, but not long variable names. 

Tim

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Timothy Mak
Sent: 19 June 2013 15:30
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: RE: Variable name length limit

Hi James, 

You cannot. Unless you migrate to Stata 13! 

Tim

PS I would be interested to know which standard Stata command does this

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of James Bernard
Sent: 19 June 2013 15:26
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: Variable name length limit

Yes it is a user-written command, but widely used nowadays.

This is just an example. There are standard Stata commands that do
this too. My point was how I can disable the 32-character limit on
variable name.

Thanks,
James

On Wed, Jun 19, 2013 at 3:12 PM, Timothy Mak <tshmak@hku.hk> wrote:
> Hi James,
>
> Are you talking about a user-written command? I can't find -diff- as a command, and -ttest- doesn't seem to have a -diff- option. If it is a user-written command, then the person who wrote it is responsible for the behaviour of the command. You can either wait for that person to reply, or modify their ado file to fix the problem yourself, or perhaps the easiest way is to just shorten your variable name.
>
> Tim
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of James Bernard
> Sent: 19 June 2013 15:02
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: RE: Variable name length limit
>
> I have a variable named "no_dynamic_boxes_fixedat_94". After running a
> t-test in -diff command (for Difference-in-Difference estimation)
> Stata creates a variable named "_no_dynamic_boxes_fixedat_94_ttest_mc"
> which has more than 32 characters....
>
> it then returns error
>
>
>
>
> On Wed, Jun 19, 2013 at 2:46 PM, Timothy Mak <tshmak@hku.hk> wrote:
>> James,
>>
>> Can you give an example?
>>
>> Tim
>>
>> -----Original Message-----
>> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of James Bernard
>> Sent: 19 June 2013 14:20
>> To: statalist@hsphsun2.harvard.edu
>> Subject: st: Variable name length limit
>>
>> Hi,
>>
>> I have been struggling with the limits that Stata has imposed on the
>> length of variable names. The fact is that Stata often takes a
>> variable name and while running some tests creates ancillary variables
>> that are named by combing my current variable names and new suffixes
>> by Stata. This makes the variable name exceed the 32-character limit.
>> Therefore, Stata stops and gives error.
>>
>> I did a search and found a thread on this titled "disable 32 character
>> limit". However, what is written there hardly addresses what the title
>> indicates. Is there really any way to disable this bugging limit?
>>
>> Thanks,
>> James
>> *
>> *   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/
> *
> *   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/

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

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index