Statalist


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

Re: st: AW: Estimating Odds Ratios (ORs) from logit coefficients


From   Chao Yawo <Yawo1964@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: Estimating Odds Ratios (ORs) from logit coefficients
Date   Fri, 17 Apr 2009 13:13:28 -0400

thanks for your help
------------------------------------------------------------------


On Fri, Apr 17, 2009 at 11:48 AM, Martin Weiss <martin.weiss1@gmx.de> wrote:
> <>
>
> Quick and dirty...
>
> *************
> clear*
>
> //get it
> capt copy http://gking.harvard.edu/files/relogit.zip relogit.zip
> di in red _rc
> capt unzipfile relogit.zip
> di in red _rc
>
> set obs 10000
> g x=rnormal()
> g y=x+rnormal()>3
>
> logit y x, or
>
> relogit y x
>
> //get OR + CIs for x
> predictnl ORx = exp(_b[x]), se(ORxSE)
> l ORx ORxSE in 1
> *************
>
>
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Chao Yawo
> Gesendet: Freitag, 17. April 2009 17:33
> An: statalist@hsphsun2.harvard.edu
> Betreff: st: Estimating Odds Ratios (ORs) from logit coefficients
>
> Hi,
>
> I have used  Gary King's Relogit to estimate several logit models, but
> I want to be able to report the ORs. Instead of manually calculating
> each separate odds ratio, is there a command that I can give after
> each model to report the odds ratios?
>
> thanks very much ... CY
> *
> *   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/
>
>
> *
> *   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/
>

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index