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: increase digits after decimal point in p value
From
Richard Goldstein <[email protected]>
To
[email protected]
Subject
Re: st: increase digits after decimal point in p value
Date
Tue, 12 Jul 2011 15:43:52 -0400
Liz,
you can quietly do the test and save the result, then noisily do the
table and display the result using whatever format and text you want
Rich
On 7/12/11 3:37 PM, Elizabeth Allred wrote:
> 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 <[email protected]> wrote:
>> Elizabeth Allred <[email protected]> :
>>
>> sysuse auto, clear
>> ta rep78 for, exact
>> ret li
>>
>> On Tue, Jul 12, 2011 at 3:08 PM, Elizabeth Allred
>> <[email protected]> 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/