Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Table with lincom output?

From   Roger Newson <>
To   "" <>
Subject   Re: st: RE: Table with lincom output?
Date   Sun, 14 Mar 2010 14:55:16 +0000

Another possibility is to use the -lincomest- package together with the -parmest- package. The -lincomest- package is a version of -lincom- which saves the results as Stata estimation results. And the -parmest- package saves estimation results in an output dataset (or resultsset), with 1 observation per estimated parameter, and data on parameter estimates, standard errors, confidence limits, P-values, and other parameter attributes. These can then be converted to tables using the -listtex- package or the -listtab- package.

The packages -lincomest-, -parmest-, -listtab- and -listtex- are downloadable from SSC. Examples of their use are given in Newson (2003)

I hope this helps.

Best wishes



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

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

On 14/03/2010 09:37, Martin Weiss wrote:


You can always employ a -postfile- for this purpose:

sysuse auto, clear
reg  price weight length rep78

tempname hdle
cap erase info.dta

postfile `hdle' est se df   /*
*/ using info.dta

lincom weight+rep78
post `hdle' (r(estimate)) (r(se)) (r(df))
lincom 2*weight-4*rep78
post `hdle' (r(estimate)) (r(se)) (r(df))
lincom weight+length-2
post `hdle' (r(estimate)) (r(se)) (r(df))

postclose `hdle'

u info, clear
l, noo


-----Original Message-----
[] On Behalf Of Devan Marshall
Sent: Sonntag, 14. März 2010 02:04
Subject: st: Table with lincom output?

Hello everyone.

I have run a series of lincom commands and I'd like to organize the
output in a table. I just need the point estimate and se (which I know
you have access with r(estimate) or r(se). So I can save these as
scalars. But I cannot find how to organize them in a simple table. The
esttab doesn't seem to be able to do this.

Any suggestions would be appreciated.

Thank You.

*   For searches and help try:

*   For searches and help try:

Roger B Newson BSc MSc DPhil
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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index