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

From |
gjhxmu@sina.com |

To |
statalist<statalist@hsphsun2.harvard.edu> |

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 <martin.weiss1@gmx.de> To: <statalist@hsphsun2.harvard.edu> 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: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: Freitag, 27. November 2009 19:18 To: statalist@hsphsun2.harvard.edu 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 n.j.cox@durham.ac.uk gjhxmu@sina.com 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 <n.j.cox@durham.ac.uk> 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 n.j.cox@durham.ac.uk Rose gjhxmu@sina.com 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/

- Prev by Date:
**Re: st: Postestimation puzzle(s)** - Next by Date:
**Re: st: Postestimation puzzle(s)** - Previous by thread:
**RE: st: RE: How to show all the letters in the variable name when they are long?** - Next by thread:
**st: Date: Fri, 27 Nov 2009 13:54:00 -0500** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |