Statalist The Stata Listserver


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

st: Formatting output


From   Herb Smith <hsmith@pop.upenn.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Formatting output
Date   Mon, 18 Sep 2006 08:17:31 -0400 (EDT)

I have written a routine to examine nonresponse bias based on a second,
unbiased "double sample."  My output currently looks like this, an admix
of two "summ" commands and a bunch of numbers that the program calculates:

-> state = PA

sex

Sample 1:

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
         sex |     24824    1.038471    .1923339          1          2

Sample 2:

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
         sex |       580    1.077586    .2677502          1          2

Double sample mean for variable sex is 1.0623649
Associated standard error is .00680798

Estimated bias of single sample estimator is -.02389403
Estimated standard error is .00122073
Estimated RMSE is .02392519

Relative efficiency of double sample estimator (ratio to one sample RMSE):
0.28

Corresponding sample size for same MSE with one sample, 100% response:
1255

	What I would prefer to do is synthesize this information in a
"nice" table of my own construction (since I have many variables).  I seem
to remember somewhere about how to get command of output editing; but
other than a program for making tables of regression coefficients, I have
been unable to find any other instructions or examples....

	Thanks in advance,

	--Herb Smith

Professor of Sociology and
Director, Population Studies Center
230 McNeil Building
3718 Locust Walk CR
University of Pennsylvania
Philadelphia, PA  19104-6298

hsmith@pop.upenn.edu

215.898.7768 (office)
215.898.2124 (fax)

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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