RE: st: p value precision in clogit output

 From "Rodriguez, Dan (Prop)" To "'statalist@hsphsun2.harvard.edu'" Subject RE: st: p value precision in clogit output Date Thu, 25 Oct 2007 14:31:55 +0100

```Need to convert date format of YYYYMMDD into Stata date format. Does anyone have a short do-file to accomplish this?

Thank you,
Dan

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Sergiy Radyakin
Sent: Wednesday, September 12, 2007 9:37 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: p value precision in clogit output

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,

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

==============================================================================

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================

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