Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Control of format in output of commands?
From
Art Burke <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Control of format in output of commands?
Date
Thu, 3 Feb 2011 11:23:18 -0800
I'm using Stata/MP 11.1 on Windows 7.
Could someone kindly explain the control of the print formats in the following?
.sysuse auto
. mean mpg
Mean estimation Number of obs = 74
--------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
mpg | 21.2973 .6725511 19.9569 22.63769
--------------------------------------------------------------
. set cformat %9.2f
. mean mpg
Mean estimation Number of obs = 74
--------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
mpg | 21.30 0.67 19.96 22.64
--------------------------------------------------------------
. summarize mpg
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
mpg | 74 21.2973 5.785503 12 41
. format mpg %9.2f
. summarize mpg
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
mpg | 74 21.2973 5.785503 12 41
Art
_______________________________________
Art Burke
Associate
Education Northwest
101 SW Main St, Suite 500
Portland OR 97204-3213
[email protected]
Phone: 503-275-9592
http://educationnorthwest.org
Need help finding evidence-based answers to questions about education practices, policies, or programs? Take advantage of our free reference desk service offered by our REL Northwest project. Contact Jennifer Klump at http://askarel.org/northwest for prompt, authoritative, and customized answers to your questions.
*
* 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/