Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Richard Goldstein <richgold@ix.netcom.com> |

To |
statalist@hsphsun2.harvard.edu |

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

**References**:**st: increase digits after decimal point in p value***From:*"Elizabeth Allred" <lizard@hsph.harvard.edu>

**Re: st: increase digits after decimal point in p value***From:*Austin Nichols <austinnichols@gmail.com>

**Re: st: increase digits after decimal point in p value***From:*"Elizabeth Allred" <lizard@hsph.harvard.edu>

- Prev by Date:
**Re: st: increase digits after decimal point in p value** - Next by Date:
**st: Errors arise when dataset is modified in Bootstrapping** - Previous by thread:
**Re: st: increase digits after decimal point in p value** - Next by thread:
**Re: st: increase digits after decimal point in p value** - Index(es):