Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: re: controlling display formats in macros

From   Kit Baum <>
Subject   st: re: controlling display formats in macros
Date   Sat, 27 Feb 2010 19:24:12 -0500


Macro extended functions are your friend:

webuse auto, clear
reg price mpg
loc b1: display %6.1f _b[mpg]
tw lfit price mpg, ti("price vs mpg") subti("b = `b1'")

Kit Baum   |   Boston College Economics & DIW Berlin   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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