Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: How to test the significance of a ratio of two correlated odds ratios in Stata
From
"Tiago V. Pereira" <[email protected]>
To
[email protected]
Subject
Re: st: How to test the significance of a ratio of two correlated odds ratios in Stata
Date
Thu, 8 Sep 2011 16:42:25 -0300 (BRT)
Thank you again, Maarten!
Your website is my second Stata manual!
All the best,
Tiago
------------------
Dear statalisters,
I would like to obtain the ratio of two odds ratios from a simple logistic
regression model. The model I am working on looks like:
*/ ---------- start ---------------------
clear
set obs 1000
*/ generates a 1/0 disease status, 1 = disease,0=healthy
gene status = round(runiform())
*/generates a categorical covariate 0,1,2
gene covariate = round(runiform()*2)
logit status covariate
xi:logit status i.covariate
*/ ----------end ---------------------
Specifically, what I looking for is the ratio of OR2 to OR1 (i.e. test if
this ratio is statistically significant from 1), where:
OR2 = odds ratio for covariate ==2 vs covariate ==0
OR1 = odds ratio for covariate ==1 vs covariate ==0
Maarten has already provided me some extremely useful insights in 2007 on
how to solve this problem in Stata
http://www.stata.com/statalist/archive/2007-02/msg00822.html
but I am somehow confused now when fitting that simple model.
If you could provide any further tips, I will be again very grateful.
All the best,
Tiago
*
* 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/