Statalist


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

Re: RE: st: RE: How to show all the letters in the variable name when they are long?


From   [email protected]
To   statalist<[email protected]>
Subject   Re: RE: st: RE: How to show all the letters in the variable name when they are long?
Date   Sat, 28 Nov 2009 13:28:46 +0800

Dear Martin and Nick,
thank you very much.
Everything goes very if I Put distinguishing material at the beginning of variable names.
 
Best regards,
Rose
 
 
 
----- Original Message -----
From: Martin Weiss <[email protected]>
To: <[email protected]>
Subject: RE: st: RE: How to show all the letters in the variable name when they are long?
Date: 2009-11-28 02:49:31


<>

" Put distinguishing material at the beginning of variable names"


Like:

*******

vers 10.1

clear*
set obs 1

forv i=1/10{
gen mylongvarname`i'=.
}

//rename
loc i 0
foreach var of varlist _all{
loc ++i
rename `var' myvar`i'`var'
}

d
*******


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Freitag, 27. November 2009 19:18
To: [email protected]
Subject: RE: st: RE: How to show all the letters in the variable name when
they are long?

Difficult to advise further except 

1. Use short names if you can. 

2. Put distinguishing material at the beginning of variable names not
the end if you can. 

Nick 
[email protected] 

[email protected]

I am sorry for my incorrect claim. With regard to my situation, some
variable names are long and the left of these variable names are the
same. So it is hard to distinguish them in the result window. Certainly,
I can distinguish them in the variable window.

From: Nick Cox <[email protected]>

In general, I can think of three cases here:

1. Commands where you have no control. Thus -summarize- offers no option
to tune this. 

2. Commands where you have some control. Thus -list- offers an
-abbreviate()- option. 

3. Programs you write yourself. Here you just arrange that there is
enough space for exactly the display you want. 

I don't think that any global setting changes this. For example, -set
linesize- does not. 

But Rose's final claim should be incorrect. Stata's variable name
abbreviations may seem cryptic, but they should not be ambiguous. 

Nick 
[email protected] 

Rose [email protected]

Some of my variable names are so long that stata replace some middle
letters with "~".

For example,
su wemploycashta
the variable name will be showed as wemploycas~a


How to show all the letters? If these variable names are not showed
totally, I can not distinguish them.

*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/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/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/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