* * Example 16.7.5 starting page 446 * open data mroz.dat data(format=free,org=columns) 1 753 taxableinc federaltax hsiblings hfathereduc hmothereduc siblings lfp $ hours kidsl6 kids618 age educ wage wage76 hhours hage heduc hwage faminc mtr mothereduc fathereduc unenployment $ largecity exper * * Least squares on full sample * linreg(title="Least Squares") hours # constant educ exper age kidsl6 * * Least squares restricted to observations with positive hours * linreg(smpl=(hours>0),title="Least Squares on Hours>0") hours # constant educ exper age kidsl6 * * Tobit model. This is done with LDV (Limited Dependent Variables) with the option * CENSOR=LOWER and LOWER=0.0. * ldv(censor=lower,lower=0.0,title="Tobit") hours # constant educ exper age kidsl6 * * This evaluates the normal distribution probabilities at the given setting for x, * given the standard deviation and lower limit. %PRJCDF is the normal CDF value * needed for adjusting the regression coefficient to compute marginal effects. * prj(xvector=||1.0,12.29,10.63,42.54,1.0||,scale=sqrt(%seesq),lower=0.0) disp "Marginal Effect of Education" %prjcdf*%beta(2)