Hey,
a little question bothering me for a while. I often work with logged dependent variables and do not use any re-transformation and interpret signs mostly. I learned that margins can re-transform variables and now I wonder which method is best or correct. I prepared some:
The last graph shows that the results are somewhat different. Also the nonlinearity in the second model is interesting. What do you think, which is better and why?
a little question bothering me for a while. I often work with logged dependent variables and do not use any re-transformation and interpret signs mostly. I learned that margins can re-transform variables and now I wonder which method is best or correct. I prepared some:
Code:
version 15 sysuse nlsw88, clear gen lwage = log(wage) reg wage i.union c.ttl_exp margins union, at(ttl_exp=(0(4)24)) marginsplot, name(normal, replace) yscale(range(2 14)) reg lwage i.union c.ttl_exp margins union, at(ttl_exp=(0(4)24)) expression(exp(predict(xb))) marginsplot, name(exp, replace) yscale(range(2 14)) graph combine normal exp
Comment