|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: p value precision in clogit output
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: [email protected] [mailto:[email protected]] On Behalf Of Sergiy Radyakin
Sent: Wednesday, September 12, 2007 9:37 AM
To: [email protected]
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,
Sergiy Radyakin
On 9/12/07, Luisa Foco <[email protected]> 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/
==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
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/