Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: trend in ORs across ordered levels of a 3rd variable


From   "Joseph Coveney" <jcoveney@bigplanet.com>
To   "Statalist" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: trend in ORs across ordered levels of a 3rd variable
Date   Sat, 19 Apr 2008 17:30:24 +0900

Let me flesh out that last response a little.
Joseph Coveney

webuse bdesop, clear
generate byte sex = alcohol <= 2
generate byte grade = tobacco + 8
drop if grade == 9
*
* Begin here
* Homogeneity of odds
mhodds case sex [fweight = freq], by(grade)
* Trend across grades
tabodds case grade [fweight = freq], adjust(sex) or
exit


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