[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" <[email protected]> |
To |
"Statalist" <[email protected]> |
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/