* * Example from section 7.5.1 starting page 185 * open data cps_small.dat data(format=free,org=columns) 1 1000 wage educ exper female black white midwest south west * set lnwage = log(wage) * linreg lnwage # constant educ female * disp "Exact estimate of wage gap" exp(%beta(3))-1.0 * * SUMMARIZE can compute the value and standard error (using the delta method) for * a non-linear function of the coefficients. * summarize exp(%beta(3))-1.0 * set educ_exper = educ*exper linreg lnwage # constant educ exper educ_exper * summarize(title="Marginal Effect of Experience at 16 years of education") %beta(3)+%beta(4)*16