Statalist


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

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


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Estimating Odds Ratios (ORs) from logit coefficients
Date   Fri, 17 Apr 2009 16:01:25 +0000 (GMT)

--- On Fri, 17/4/09, Chao Yawo wrote:
> 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?

You can use the -estimates table- command in combination
with the -eform- option. This way you can also collect
all the models in one table. See the example below:

*------------- begin example ------------------
sysuse auto, clear
sum price
local mprice = r(mean)

relogit foreign mpg if price <= `mprice'
est store cheap
relogit foreign mpg if price > `mprice'
est store expensive
estimates table cheap expensive , eform b se 
*-------------- end example -------------------

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index