Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Taboods


From   rgutierrez@stata.com (Roberto G. Gutierrez, StataCorp.)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Taboods
Date   Tue, 18 Jun 2002 11:12:29 -0500

In the continuing thread on -tabodds-, I had suggested that the problem may
have been with a variable labeling.  Jean Bouyer <Bouyer@vjf.inserm.fr> adds:

> 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).

> [etc.]

My Stata colleague, Weihua Guan, pointed this out to me:

> The -base(#)- option does not specify the value of a category, i.e.,
> agec6==#, but specifies the #th category.  In Jean's example, -base(2)-
> actually tells -tabodds- that the second category, for which agec6==1, will
> be set as the base.

> The ado code generates a temporary group variable using -egen-:

> . egen `g' = group(agec6)

> and then compare the number specified by -base()- to the value of `g'. 

> The help file of -tabodds- is not clear about this point, and we may want to
> modify it in a later update.

Weihua and I agree that this "feature" of -tabodds- needs to be better
documented.

--Bobby
rgutierrez@stata.com
*
*   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/



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