* * Example 4.5 from page 55 * open data tablef4-1[1].txt data(format=prn,org=columns,skip=36) 1 753 lfp whrs kl6 k618 wa we ww rpwg hhrs ha he hw faminc mtr wmed wfed un cit * * Variables are described in grnp051.prg * set logearn = log(whrs*ww) set agesq = wa**2 set kids = (kl6+k618)>0 * * Run the regression over the sample which has lfp equal to 1 * linreg(smpl=lfp,vcv) logearn # constant wa agesq we kids * * Testing a set of zero restrictions can be done using the instruction EXCLUDE. * List the explanatory variables you want to test on the supplementary. Note that * a test of all the slope coefficients is automatically included in any linear * regression with an intercept. It's the regression's F statistic in the output. * You can check to see that the two give the same result. * exclude(title="Test of All Slope Coefficients") # wa agesq we kids