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

st: Re: Regression results formatted for publication


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: Regression results formatted for publication
Date   Thu, 22 May 2003 21:33:11 +0100

At 13:15 22/05/03 -0400, Danielle H. Ferry wrote:
Roger, thank you so much! This is really great. I've been able to add
asterisks for significance and put regression coefficients & SEs, R2, N, and
lincom results for multiple regressions into a single data file.

One final question:
Is there an equivalent to -lincomest- for F-tests, i.e. for -test-?
There is no equivalent to -lincomest- for F-tests, because an F-test creates no estimates and standard errors (only F-statistics and P-values), and therefore cannot be wrapped up in an estimation-class command like -lincomest-. However, -test- (like -lrtest-) is a rclass command, and saves the P-value in a scalar called r(p) (see -[R] test- and -[R] lrtest-). You can easily access this value, and put it into a data set with only the P-value variable -p-, and -dsconcat- that data set with the -parmest- outputs. Or you might add r(p) to a -parmest- output data set as an extra variable. There are many possibilities. For further help on handling returned results, see on-line help for -return-, or the hardcopy manuals under -[R] saved results- or -[P] return-. A lot of helpful advice about saving results in Stata data sets can be found in the hardcopy programming manual under -[P] postfile-.

I hope this helps. By the way, as of today, there is a new improved version of -parmest- on my website, which you can find from within Stata by typing

net from http://www.kcl-phs.org.uk/rogernewson/stata7

I have also sent the new version to Kit Baum, so it should soon be available on SSC as well.

Best wishes

Roger


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