Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Macro display format

From   "Thomas Speidel" <>
To   <>
Subject   st: Macro display format
Date   Wed, 22 Mar 2006 15:42:09 -0700

I am trying to include the content of a macro within a graph, but I'm
having problems with the display format.  

For example:

sysuse auto, clear
qui: summ length
twoway scatter length mpg, text(200 35 "The mean of length is:

How do I change the format of the macro to display something like %9.2f?

I tried:
... , text(200 35 "The mean of length is: `%9.1f `r(mean)''")

Am I missing some triple compound quote? :-)


Thomas Speidel
Statistical Associate
Clinical Trials Unit
Tom Baker Cancer Centre
1331 - 29th Street N.W.
Calgary, AB, T2N 4N4

Tel. (403) 521-3370

This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.

*   For searches and help try:

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