Wednesday, March 22, 2006

st: Macro display format

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: `r(mean)'")

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? :-)

Thanks, Thomas

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

Tel. (403) 521-3370 Email:

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


Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?