/* Define local macros with groups of independent variables */ local wrk_status "fulltime-school" local occup "tech serv farm oper" local demog "men white age childs" local geog "mw-w size" local jobatrb "jobinc1 jobmeans1" /* The following regression examples uses the Stata command nestreg to calculate extra sums of squares tests. nestreg fits nested models by sequentially adding blocks of variables and then reports comparison tests between the nested models. */ #delimit ; nestreg: reg realrinc (`wrk_status') (`occup') (`demog') (`geog') (`jobatrb') (educ race_ed) if year==2006 ; #delimit cr adjust, by(occ80a white sex) format(%9.1fc) adjust, by(occ80a sex white) format(%9.1fc)