<>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Chao Yawo
Gesendet: Freitag, 17. April 2009 17:33
An: [email protected]
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/