

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Dummy Variable, Fit the Models Hrwage, Interpret the Estimated Coefficients, Estimate the Null and Alternative Models, Male and Female Intercepts are Different, Test the Joint Null Hypothesis, Overall Homogeneity of the Regression, The Appropriate Dummy Variables, Regression of Hrwage On Edyrs . This lecture is part of full lecture series on general sociology.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


sociology 362 data exercise 3 dummy variables
The following problems are to be done using dmy cps1985.dta, a file that I will distribute via email attachment. Once you open this file using stata, type the command notes to get the identity and coding of all the variables.
a. interpret α and β in each fitted model.
b. satisfy yourself that the regression results do indeed correspond to what you would get with a t-test of the difference between two population means. For example, try ttest hrwage,by(fem).
a. Interpret the estimated coefficients of fem and south.
b. Generate the observed table of hrwage means for the four combinations of south and fem. Try the stata command tab2 south fem,summ(hrwage),nost.
c. Generate the table of fitted means for the four combinations of south by fem. (You can just use the estimated model for this.) What is the estimated mean hourly wage for a female working in the south? For a male working in the non-south?
d. How does the fitted table compare to the observed? For example, is the sex difference in the observed table the same for both regions as it is in the fitted table?
a. Assuming the schooling slope is the same for males and females, test the hypothesis of no difference in intercepts, i.e., no sex difference in mean Y when schooling is controlled.
b. Assuming the male and female intercepts are the same, test the hypothesis that schooling has no effect on earnings.
c. Assuming the male and female intercepts are different, test the hypothesis that schooling has no effect on earnings.
d. Assuming that male and female intercepts are different, test the hypothesis that male and female slope coefficients of schooling are equal.
e. Test the joint null hypothesis of no sex difference in intercepts or in schooling slopes. This is the so-called test of overall homogeneity (or equality) of regressions. Use the sex dummy fem and an interaction term that you construct to test this hypothesis.
f. Again test the hypothesis of overall homogeneity of the regression of hrwage on edyrs for males and females, but now represent the alternative model by running separate regressions of hrwage on edyrs for men and women.
hrwage = α + β 1 edyrsi + β 2 femi + β 3 Ii + i (1)
where Ii = f emi ∗ edyrsi.
The alternative model of 4f can be written as:
hrwagem = αm + βmedyrsm + m
hrwagef = αf + βf edyrsf + f
where the subscripts stand for male and female, and the models are fits separately to male and female observations. Show how the intercept and coefficients of the first model are related to the intercepts and coefficients of the second model. Use the estimates from the models fitted above.
6.Suppose we are interested in the relationship of hourly wage hrwage to schooling (edyrs), but we have reason to believe that race (race) may be implicated in the relationship. For each of the following, use the F-test to arrive at your conclusions.
a. Construct in stata the appropriate dummy variables and then do the appropriate regression for testing the hypothesis of no overall differences in the mean hourly wages of workers of different races (ignore schooling).
b. Assuming the schooling slope for the regression of wage on schooling is the same for workers of different races, test the hypothesis of no racial differences in intercepts of the wage regression, i.e., no race differences in mean hourly wage when schooling is controlled.
c. Assuming race differences in intercepts, test the hypothesis that schooling has no effect on earnings.
d. Assuming racial differences in intercepts, test the hypothesis that there are no racial differences in slope coefficients of schooling, i.e., no racial differences in the wage returns to schooling.
e. Test the joint null hypothesis of no racial differences in intercepts or in schooling slopes. This is the so-called test of overall homogeneity (or equality) of regressions. Use the race dummies fem and interaction terms that you construct to test this hypothesis.
f. Again test the hypothesis of overall racial homogeneity of the regression of hrwage on edyrs, but now represent the alternative model by running separate regressions of hrwage on edyrs for the three races. Make sure you understand how the fitted models doing the test this way correspond to the fitted model of problem e.