Statalist


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

Re: st: p value precision in clogit output


From   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: p value precision in clogit output
Date   Wed, 12 Sep 2007 15:37:18 +0200

Hello Luisa,


run your model with clogit but without an "or" option.
You will get a coefficient and standard error output.
Get the precise Z-value
Use the following formula:
p=2*(1-norm(abs(c)/se))

where c is the coefficient and se -- its standard error.

E.g.:

sysuse auto
clogit  foreign  weight, group(gear_ratio)
di 2*(1-norm(abs(-.0013891)/.0020871))

rounded value is 0.506
more precise value is .5056894

Use saved results to access the coefficients in your program if
necessary. See -ereturn list-.

Best regards,
    Sergiy Radyakin



On 9/12/07, Luisa Foco <luisa.foco@unipv.it> wrote:
> Dear Stata users,
> I have the following output, obtained with the clogit command, with a
> p-value <0.0001 and I would like to display the precise value of p.
>
> ------------------------------------------------------------------------------
>      _Icc_1 | Odds Ratio   Std. Err.      z    P>|z|     [95% Conf.
> Interval]
> -------------+----------------------------------------------------------------
>   _112 |   1.259198   .0640371     4.53   0.000      1.13974    1.391176
> ------------------------------------------------------------------------------
>
> Is there a general way to do this?
> Thanks in advance for your help
>
> Luisa
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index