Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Re: st: increase digits after decimal point in p value

 From "Elizabeth Allred" To Subject Re: st: increase digits after decimal point in p value Date Tue, 12 Jul 2011 15:37:58 -0400

```Thanks Austin,

For the table I showed, I get:

scalars:
r(N) =  861
r(r) =  2
r(c) =  2
r(p_exact) =  4.79750510923e-07
r(p1_exact) =  2.92991198169e-07

I'm interested in the two sided p so I did:

ret li p_exact

scalar r(p_exact)  =  4.79750510923e-07

Unfortunately what I'm actually doing is around 3500 tables and I'd really like to scan the output and see:

Fisher's exact =                 0.00000

so I can quickly pick out tables with p < .00001. I really do want to change the display format!

Liz

On 7/12/2011 at  3:14 PM, in message
<CAGkAVYKJM9AKAmObHFpa7Y1TajS+655otdAsUGhRvKSr6T3_+Q@mail.gmail.com>, Austin
Nichols <austinnichols@gmail.com> wrote:
> Elizabeth Allred <lizard@hsph.harvard.edu> :
>
> sysuse auto, clear
> ta rep78 for, exact
> ret li
>
>
>
> On Tue, Jul 12, 2011 at 3:08 PM, Elizabeth Allred
> <lizard@hsph.harvard.edu> wrote:
>> I need to see 5 digits after the decimal point for the Fisher's exact test
> in a tabulate request. It only shows digits.
>>
>> tab x y, exact
>>
>>                          y
>>         x |         0          1 |     Total
>> -----------+----------------------+----------
>>         0 |       512        133 |       645
>>         1 |       133         83 |       216
>> -----------+----------------------+----------
>>     Total |       645        216 |       861
>>
>>           Fisher's exact =                 0.000
>>   1-sided Fisher's exact =                 0.000
>>
>> Tabulate is a "built-in" command so I can't go in and change the display
> format.
>>
>> How can I get what I need??
>
> *
> *   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/
```