Statalist The Stata Listserver


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

st: RE: Summary statistics/latex


From   "Newson, Roger B" <r.newson@imperial.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Summary statistics/latex
Date   Thu, 5 Oct 2006 16:39:33 +0100

I don't know what is meant to go in the places where you specify "...."
. However, I think I would first use -xcollapse- to produce a separate
dataset (with 1 observation) of summary stats for each variable,
concatenate them together using -dsconcat-, and then use -listtex- to
create the output LaTeX table. The header rows (containing the headings
"Table 1: Summary statistics" or "Panel A: Dependent Variables" or
"Panel B: Independent Variables") can be inserted either using the
-head- option of -listtex- or using the -ingap- package. All packages
mentioned can be downloaded from SSC using the -ssc- command.

I hope this helps.

Roger


Roger Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: r.newson@imperial.ac.uk 
www.imperial.ac.uk/nhli/r.newson/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard
Boylan
Sent: 05 October 2006 15:51
To: statalist@hsphsun2.harvard.edu
Subject: st: Summary statistics/latex

I am trying to generate a latex table of summary statistics that looks
as follows:


Table 1: Summary Statistics


Panel A: Dependent variables

                     Mean         ....
Income            5              ...
...


Panel B: Independent variables

                     Mean         ....
Education         10             ...
...


So, I cannot use the program sutex because I want the table to have
two different panels.

Presumably, there is a way of generating this type of table using some
of the program written by Roger Newson, but I could not find an
example of his that was very similar to this.

I would appreciate if anyone who had an example of how to generate a
similar table would email it to me or to the stata listserv.
*
*   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/

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