Statalist


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

Re: st: RE: subscripts in variable labels


From   Miranda Kim <[email protected]>
To   [email protected]
Subject   Re: st: RE: subscripts in variable labels
Date   Fri, 04 Dec 2009 13:56:18 +0000

Thank you Nick for clarifying this to me.
BW,
Miranda

Nick Cox wrote:
The report "does not work" is ambiguous here. Perhaps you mean "does not
do what I expect" or "does not do what I want".
The Stata claim is, I believe, only that superscripts and subscripts
show up as intended on graphs. Thus
. sysuse auto
(1978 Automobile Data)

. label var trunk "Trunk space (ft{sup:3})"

. scatter mpg trunk

will result in a superscript being shown. For any other purpose,
defining a variable label just results in the mark-up being shown as
typed, not as interpreted.
This is consistent with the longstanding idea that whatever appears in
the Results window is in one font and shown on one line at a time. Nick [email protected]
Miranda Kim

I wonder if one can include subscripts / superscripts etc. in the label of a variable.
I tried:
lab var totbmc "BMC{sub:T}"
but this does not work.

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