Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: Table with lincom output?
From
Roger Newson <[email protected]>
To
"[email protected]" <[email protected]>
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
Roger
References
Newson R. 2003. Confidence intervals and p-values for delivery to the
end user. The Stata Journal 3(3): 245-269. Download from
http://www.stata-journal.com/article.html?article=st0043
Newson R. 2004. From datasets to resultssets in Stata. Presented at the
10th UK Stata User Meeting, 28-29 June, 2004. Download from
http://ideas.repec.org/p/boc/usug04/16.html
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
//-postfile-
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
*************
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Devan Marshall
Sent: Sonntag, 14. März 2010 02:04
To: [email protected]
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.
Devan
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--
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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/
Opinions expressed are those of the author, not of the institution.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/