i m working on a log log model.
first run a regression of log wage on education, log experience, female, married, large-firm.
use the corrected prediction to calculate the marginal effect of an additional year of experience for an unmarried male at a small firm at the average education and experience.
do i do this right?
gen lnhrearn=ln(hrearn)
gen lnexper=ln(exper)
scalar avexper=r(mean)
scalar lnavexper=ln(avexper)
scalar aveducrecode=r(mean)
scalar sig2b=e(rss)/e(df_r)
di "corrected factor="exp(sig2b/2)
scalar predlnhrearn1=_b[_cons]+_b[educrecode]*aveducrecode+_b[married]*0+_b[female]*0+_b[largfirm]*0+_b[lnexper]*lnavexper
scalar sig2b=e(rss)/e(df_r)
scalar yhatd=exp(predlnhrearn1)*exp(sig2b/2)
disp _b[lnexper]*(yhatd/avexper)
i ask because i got different stata outcome with hand calculation.
Related Posts with log-log model
How to modify arguments (args) in a ML program?Dear all, I wonder if anyone has a better solution to the following problem. Say that I'm interested…
Create a new string variable containing words of other string variablesDear Statalist: I have a set of string variables that contain each a word related to symptoms of a …
looping across multiple variablesHi, I have a dataset that includes several observations for one id and i need to create a sequencin…
-oaxaca- using normalize option for categorical predictor variablesHi! I know that results from regular -oaxaca- depend on the omitted base category for categorical va…
Problem with generating a binary variable with individual's state and year specificationsHi all. I am currently doing my dissertation based off the same methodology from Goldin and Katz (2…
Subscribe to:
Post Comments (Atom)
0 Response to log-log model
Post a Comment