Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Formatting and variable problem


From   "Steichen, Thomas" <[email protected]>
To   <[email protected]>
Subject   st: RE: Formatting and variable problem
Date   Wed, 3 Jul 2002 09:00:34 -0400

Fred Wolfe writes:
> 
> I have a program which does various calculation and then ends 
> with the following line:
> 
>           di as text "{ralign `startcol' : `outname'}" " {c |}" as result 
> "{ralign 9: `N' `mean' `sd' `se' `median' `min' `max' `lci' `uci'}"
> 
> If  any of the macros are empty (`N' `mean' `sd' `se' `median' `min' `max' 
> `lci' `uci'), as would often be expected, then no result for  the missing 
> macro is displayed. However, each missing macro uses exactly  1 character 
> space. Therefore the output is not uniform as to spacing, and  it is hard to 
> line up titles above the output.

Fred... it's not the macro that is taking up one character, it is the space
between macros that you put in to separate the elements of your output line.

Those spaces print just like any other character, regardless of whether your
macros are empty or not.

Tom 
CONFIDENTIALITY NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information.  If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system.  Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.




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