Statalist The Stata Listserver


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

st: RE: Formatting tables for LaTeX from STATA-advanced options


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: Formatting tables for LaTeX from STATA-advanced options
Date   Mon, 18 Sep 2006 20:02:19 +0100

One possibility would be to use a resultsset approach, creating a
dataset with 1 observation per table row using -reshape- and writing it
to a TeX table using -listtex- (downloadable from SSC). The resultsset
approach is detailed in Newson (2003) and Newson (2004). Both of these
can be downloaded from my website (see my signature below).

I hope this helps.

Roger


References

Newson R. Confidence intervals and p-values for delivery to the end
user. The Stata Journal 2003; 3(3): 245-269.

Newson R. From datasets to resultssets in Stata. Presented at the 10th
UK Stata User Meeting, 28-29 June, 2004.


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: [email protected] 
www.imperial.ac.uk/nhli/r.newson/

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

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tiffany Green
Sent: 18 September 2006 19:51
To: [email protected]
Subject: st: Formatting tables for LaTeX from STATA-advanced options

I am trying to format some tables from STATA to LaTeX.
 I am already familiar with sutex and latabstat, but
am having trouble adapting them to my needs.  I would
like to report summary statistics on the basis of
ethnicity for my waves 1, 2 and 3 of my panel data. 
Just working with wave 1, I have a table with 5 rows
and four columns.  My table is spilling off of the
page, and the longtable option does not seem to work
with the latabstat command.  In addition, the
latabstat command doesn't seem to allow for the
labeling over variables. However, I cannot use the
sutex command for this, given that I would like to
report the statistics (mean, sd) side by side:
(for example)
              black     white    hispanic   
age
work
educ
married
health

Does anyone have any tips on how I might be able to
create a table as described above?
Thanks!


If the facts don't fit the theory, change the facts. 
-Albert Einstein

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index