Professional Documents
Culture Documents
gen singfem=(1-married)*(female)
gen singmale=(1-married)*(1-female)
*marrmale is the dummy for the married male workers, marrfem married female work
ers,
*singfem: single female workers and singmale is the single male workers.
*Need to choose one of these as the base group
*so that we include 4 -1 = 3 dummies in the model to avoid the dummy variable tr
ap.
*Suppose that the base group is singmale.
reg wage marmale marfem singfem
sum wage if female==0 & married==0
*Of course, we can add other control variables to the regression such as exper,
tenure.
reg wage marmale marfem singfem educ exper expersq tenursq tenure
*Storing regression results and constructing tables
reg wage marmale marfem singfem
*After the regression, let's store the results of this regression and name it re
g1
estimates store reg1
reg wage marmale marfem singfem educ exper expersq tenursq tenure
estimates store reg2
*Now present the results of these regressions in a table,
*b:coefficient estimates, se: standart errors.
*b(%8.4f) is about the font of the output.
estimates table reg1 reg2, b se t p stats(N r2) b(%8.4f)