From David Airey To statalist@hsphsun2.harvard.edu Subject Re: st: Tabout Date Sat, 7 Mar 2009 10:03:29 -0600

```.

```
Why does it say t statistics in parentheses, whereas they were z statistics?
```
-Dave

On Mar 7, 2009, at 8:34 AM, Maarten buis wrote:

```
```
--- On Sat, 7/3/09, john metcalfe wrote:
```
```Does anyone know of an equivalent command to -tabout- that
produces tables of relative risks or odds ratios?
```
```
One solution would be to use -logit- or -mlogit- to estimate these
odds (ratios), like in the example below, and use Ben Jann's -estout-
to display the results.

Hope this helps,
Maarten

*------------------ begin example ---------------------------
sysuse auto, clear
recode rep78 1/2 = 3
tab rep78, gen(rep)

logit foreign rep2 rep3 , or
eststo a

logit foreign rep1 rep2 rep3, or noconstant
eststo b

esttab a, eform constant
// the odds of being a foreign car when in rep category 1 is
// .08 foreign cars for every domestic car (_cons)
// This odds is 12,3 times higher when in rep category 2, and
// 55.5 times higher when in category 3

esttab b, eform
// The odds of being a foreign car when in rep category 1 is
// .08 foreign cars for every domestic car, for rep caterory 2
// the odds is 1 foreign car for every domestic car, and for
// category 3 the odds is 4.5 foreign cars for every domestic
// car
*--------------------- end example ----------------------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

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

• Follow-Ups:
• References: