Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -mlogit- to LaTeX with -outtable- and/or -outtex-

From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: -mlogit- to LaTeX with -outtable- and/or -outtex-
Date   Mon, 02 Dec 2002 20:40:01 +0000

At 20:54 02/12/02 +0100, Daniel wrote:

I am trying to output the results from -mlogit- (5 categories, 14 vars)
to LaTeX formatted output using -outtable-. I achieve to write them
below eachother with...

mat cs=e(b)'
outtable using c:\tex\test\lu, mat(cs) append center cap("test")

How can I tell -outtable- to format the equations as -outreg- does for
text files?

-outtex- works well, however, the equations are also below eachother in
the LaTeX output.
. outtex, long file(c:\tex\test\outtext) replace

Especially appealing with -outtex- is the -long- option.
One possibility might be to use the -parmest- package, downloadable from SSC, which saves estimation results to an output data set with 1 observation per parameter (or one observation per parameter per by-group) and data on equation names, parameter names, parameter estimates, confidence limits, P-values and other parameter attributes specified by the user. (Type -ssc desc parmest- to find out more.) When you have created this output data set, you can reformat it using the official Stata command -reshape- (see -[R] reshape- or -help reshape-). You can also make other changes to the data set (eg change formats and/or variable and value labels). You can then output the data set to a TeX file using James Hardin's -textab- or possibly my own -listtex-, which can be found using -findit textab- and -findit listtex-.

I hope this helps.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]

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

* For searches and help try:

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