Statalist


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

st: RE: exact (more decimals) p values ?


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: exact (more decimals) p values ?
Date   Fri, 21 Sep 2007 17:07:39 +0100

I personally aencounter this problem all the time. My usual solution is
to use the -parmest- package, downloadable from SSC, which produces an
output dataset (or resultsset) with one observation per parameter and
data on estimates, confidence intervals, P-values and other parameter
attributes. This dataset can be listed to the log and/or saved to disk
and/or written to memory, overwriting the existing dataset.

For instance, you might type

regress mpg weight foreign
parmest, list(parm estimate stderr t min96 max95 p) format(p %-8.2g)

and get the results listed with the P-value in a left-justified format,
usually with 2 significant figures. The on-line help for -parmest-
contains many more references to other tricks that can be done with
-parmest-, together with other packages on SSC. So does my website (see
my signature below).

Alternatively, there is probably a solution with either -estout- or
-outreg-, which you can also download from SSC.

I hope yhis helps.

Roger


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] 
Web page: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marcus
Fischer
Sent: 21 September 2007 16:42
To: [email protected]
Subject: st: exact (more decimals) p values ?

Hi,
is there a way to report p values  with more than 4 decimals ?

(in case of low p values STATA reports 0.0000). I would like to know the
exact p value.

Thanks,
MF



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