Hello,
I am using STATA 13 to implement TEFFECTS to look at the relation between a Treatment (T, Binary) and a binary outcome (Y, yes/no) while adjusting for covariates (X). I have used the RA, AIPW and IPWRA approaches. Here is the code for AIPW :
teffects aipw (Y X, logit) (T X, logit), aequations ate
While the relation between X and Y is correctly modeled using a logistic regression and the relation between X and T is also modeled using a logistic regression, the ATE estimate seems to be the result of a linear regression; ie, the coefficient is very similar to what you get if you do a linear regression of Y on X and if I take the exponential of this coefficient, this is very different from an odds ratio.
Does anybody know how to model the relation between X and Y on a logistic scale, ie to obtain and odds ratio ? Am I missing an option in the syntax ?
Thank you in advance,
Marianne
I am using STATA 13 to implement TEFFECTS to look at the relation between a Treatment (T, Binary) and a binary outcome (Y, yes/no) while adjusting for covariates (X). I have used the RA, AIPW and IPWRA approaches. Here is the code for AIPW :
teffects aipw (Y X, logit) (T X, logit), aequations ate
While the relation between X and Y is correctly modeled using a logistic regression and the relation between X and T is also modeled using a logistic regression, the ATE estimate seems to be the result of a linear regression; ie, the coefficient is very similar to what you get if you do a linear regression of Y on X and if I take the exponential of this coefficient, this is very different from an odds ratio.
Does anybody know how to model the relation between X and Y on a logistic scale, ie to obtain and odds ratio ? Am I missing an option in the syntax ?
Thank you in advance,
Marianne
Comment