# st: Tabodds continued

 From Jean Bouyer To statalist@hsphsun2.harvard.edu Subject st: Tabodds continued Date Tue, 18 Jun 2002 12:53:10 +0100

Thanks for your answer. But, I had already check for this, and I don't think it is the solution because the variable agec6 has no value label (see below).

Jean

tabodds ct agec6,or base(2)

---------------------------------------------------------------------------
agec6 | Odds Ratio chi2 P>chi2 [95% Conf. Interval]
-------------+-------------------------------------------------------------
0 | 1.469206 1.58 0.2082 0.804054 2.684604
1 | 1.000000 . . . .
2 | 1.016810 0.02 0.8907 0.801593 1.289810
3 | 1.613362 15.26 0.0001 1.266239 2.055644
4 | 2.474453 40.25 0.0000 1.852346 3.305493
5 | 7.670803 66.73 0.0000 4.304008 13.671262
---------------------------------------------------------------------------
Test of homogeneity (equal odds): chi2(5) = 125.24
Pr>chi2 = 0.0000

Score test for trend of odds: chi2(1) = 92.99
Pr>chi2 = 0.0000

. tab agec6,nol

0:<20;1:20- |
24;2:25-29; |
3:30-34;4:3 |
5-39;5:>=40 | Freq. Percent Cum.
------------+-----------------------------------
0 | 51 1.74 1.74
1 | 476 16.20 17.94
2 | 1085 36.93 54.87
3 | 864 29.41 84.28
4 | 380 12.93 97.21
5 | 82 2.79 100.00
------------+-----------------------------------
Total | 2938 100.00

> Is there a (new?) problem with tabodds ? It looks like the option base(#)
> selects the category of expvar with range # instead of the category with
> value #.

> Here is an example of what I obtain :

> . tabodds ct agec6,or base(2)

> ---------------------------------------------------------------------------
> agec6 | Odds Ratio chi2 P>chi2 [95% Conf. Interval]
> -------------+-------------------------------------------------------------
> 0 | 1.469206 1.58 0.2082 0.804054 2.684604
> 1 | 1.000000 . . . .
> 2 | 1.016810 0.02 0.8907 0.801593 1.289810

[etc.]

One possibility is that the "1" in the "agec6" is not the value of the -agec6-
variable, but a value label instead, and that the actual value of -agec6- is
2, but is labeled as a 1.

If, after checking for this, you are still exhibiting weird behavior let
me know and I can take a closer look.

- --Bobby
rgutierrez@stata.com

---------------------------------------------------------------------- --------------
Jean BOUYER
INSERM U 569, HOPITAL DE BICETRE, 82 RUE DU GENERAL LECLERC
94276 LE KREMLIN-BICETRE CEDEX - FRANCE
---------------------------------------------------------------------- ---------------
*
* 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/