I used Stata 14 to estimate a logit model with continuous and dichotomous predictor variables. The continuous predictors x1, x2, and x3 are scores generated from a factor analysis. X1, the key variable of interest, ranges from about -2 to 1.2 with a mean of -.13.
The resulting odds ratio for x1 is 1.45 indicating that unit increases in x1 cause a 45% increase in the odds of a positive outcome. When I estimate the linear margins I get a positive effect on the probability of a positive response which is consistent with the odds ratio exceeding 1.
The unusual thing is that when I estimate either elasticities or semi-elasticities using the eyex or dyex I get a negative marginal effect. The negative effect emerges whenever x is specified in logarithmic terms (i.e. either the eyex or dyex specification but not the dydx and eydx specifications).
To see what's going on I evaluated the effect of x1 at different levels of x1.
Whenever x1 is less than zero the elasticity is negative. This, again, is true for the margins specified with x1 in log terms but not for either of the dydx or eydx specifications.
For example, at x1=-2 a 1% increase in x1 corresponds to a .32% decrease in the probability of y but at x1=1 a 1% increase in x1 corresponds to a .08% increase in y. What's going on here and how do I reconcile this with the odds ratio which shows a positive effect? Even with x1 set to the mean (-.13) the elasticity is still negative (eyex=-.014).
I would really like to write up the effect of x1 using the dyex or eyex marginal effects which correspond to percentage changes in x because unit changes in x1 are not exactly intuitive since it is the result of factor analysis.
Thanks for any insight you can provide.
Code:
logit y c.x1 c.x2 c.x3 i.x4 i.x5 , or
Code:
margins, dydx(x1)
To see what's going on I evaluated the effect of x1 at different levels of x1.
Code:
margins, eyex(x1) at(x1=(-2(.2)1.2)
For example, at x1=-2 a 1% increase in x1 corresponds to a .32% decrease in the probability of y but at x1=1 a 1% increase in x1 corresponds to a .08% increase in y. What's going on here and how do I reconcile this with the odds ratio which shows a positive effect? Even with x1 set to the mean (-.13) the elasticity is still negative (eyex=-.014).
I would really like to write up the effect of x1 using the dyex or eyex marginal effects which correspond to percentage changes in x because unit changes in x1 are not exactly intuitive since it is the result of factor analysis.
Thanks for any insight you can provide.
Comment