I have a question about how the command margins estimates semi-elasticity [eydx] from the results of the original model. I am analyzing the temporal evolution of racial discrepancies in the effect of class origin on children's income using a 2014 data survey in Brazil. The class of origin and race are categorical variables. Income differences are being estimated by a Generalized Linear Model, with family (gamma) link (log), which would be a better fit according to the AIC and BIC statistics. Furthermore, the GLM model with the log link exponentiates the linear index and it avoid the retransformation issues of OLS models with a logged dependent variable (Partha Deb and Edward C. Norton). The GLM model with the log link does not use a logged dependent variable.
When estimating the effects between the cohorts, I use semi-elasticity [margins, eydx], that is, I estimate effects on a logarithmic scale (proportional effects). I do this to avoid a distortion associated with age-income profile differences between the cohorts. However, I was in doubt if I was doing a double logarithmic transformation: the log link and semieslasticity [eydx].
I reproduce the stylized commands and part of the result:
I was assuming that it would not be a distortion, since semi-elasticity [margins, eydx], would use “Predicted mean”, as it appears in the output.
Would this choice generate or not distorted estimates?
Thanks in advance for the comment,
José Alcides F. Santos,
When estimating the effects between the cohorts, I use semi-elasticity [margins, eydx], that is, I estimate effects on a logarithmic scale (proportional effects). I do this to avoid a distortion associated with age-income profile differences between the cohorts. However, I was in doubt if I was doing a double logarithmic transformation: the log link and semieslasticity [eydx].
I reproduce the stylized commands and part of the result:
Code:
svy, subpop(id66): glm income i.class##i.cohorts##i.white covariates, family(gamma) link(log)
margins class#cohorts, eydx (white) post
Average marginal effects Number of obs = 30328
Model VCE : Linearized
Expression : Predicted mean income, predict()
ey/dx w.r.t. : 1.white
-----------------------------------------------------------------------------------
| Delta-method
| ey/dx Std. Err. z P>|z| [95% Conf. Interval]
------------------+----------------------------------------------------------------
1. white |
class#cohorts |
top#48 | .3981374 .1054612 3.78 0.000 .1914372 .6048376
top#58 | .2178773 .1144905 1.90 0.057 -.0065199 .4422745
top#68 | .3542466 .0966142 3.67 0.000 .1648863 .5436069
top#78 | .2521138 .091253 2.76 0.006 .0732612 .4309663
-----------------------------------------------------------------------------------
Would this choice generate or not distorted estimates?
Thanks in advance for the comment,
José Alcides F. Santos,
Comment