Slide 14
Slide 14 text
Multiple regression
using OLS in Stata
The OLS estimator
Multiple regression
using OLS in Stata
References
6.14
OLS regression in Stata
The df are calculated as the total observations less 1 for the
mean removal. The F-statistic on the upper right tests the
hypothesis that β2 = · · · = β5 = 0. The results show that
women on average earn 1287 dollars less than men, but this
difference is not significant (ρ = 0.332). On the other hand, a
one year increase in no. of years in current rank, and no. of
years since highest degree was earned increases salary by
352, and 339 dollars, respectively. Finally, PhD degree holders
on average earn 3299 dollars more than Master degree
holders. The coefficients of yr, yd and dg are all significant at
the 5 percent level. If we wanted to obtain standardized
coefficients, we would run the command reg sl sx yr yd dg,
beta.
We wish to include rank to check for rank effects. However, we
first note that this is a categorical variable with 3 categories,
and thus we have to create indicator variables for each
category. We do this in Stata by typing tabulate rk, gen(rank).
This will generate 3 variables, rank1, rank2, and rank3,
representing the categories Assistant-, Associate-, and
Full-Professor, respectively.