Reference no: EM133202623
Assignment:
Instruction
Answer all questions following a similar format of the answers to your tutorial questions. When you use R to conduct empirical analysis, you should show your R script(s) and outputs (e.g., screenshots for commands, tables, and figures, etc.). You will lose 2 points whenever you fail to provide R commands and outputs. When you are asked to explain or discuss something, your response should be brief and compact. To facilitate tutors' grading work, please clearly label all your answers.
Background
You want to estimate the effect of education on earnings. The data file cps4 small.csv contains 1,000 observations on hourly wage rates, education, and other variables from the 2008 Current Population Survey (CPS):
• wage: earnings per hour
• educ: years of education
• exper: post education years experience
• hrswk: working hours per week
• married: dummy for married
• female: dummy for female
• metro, midwest, south, west: location dummies
• black: dummy for black
• asian: dummy for Asian
Research Questions
1. Load this dataset in R. Obtain summary statistics (mean, standard deviation, 25, 50 (median), and 75 percentiles) for the variables wage and educ. Plot histograms for these two variables to explore their distributions. Make your histograms reader-friendly; that is, give informative titles and variable names instead of just using the default titles and variable names. For example, you could use Years of Education in place of educ. Create a new variable ln (wage) and draw a scatter plot of ln(wage) versus educ. Comment on the correlation between these two variables.
2. Estimate the simple linear regression model: ln(wagei) = β0 + β1educi + ei.
where ei is the error and β0 and β1 are the unknown population coefficients.
(a) Report the estimation results in a standard form, where the estimates are presented in an equation form, along with standard errors (SE) and some measure for goodness of fit (R2 ).
(b) Plot the estimated regression line you obtained in (a) on the scatter plot you constructed in Question 1.
(c) Interpret the estimated coefficient on educ and test whether or not the population coefficient β1 is zero at the 1% significance level.
(d) You suspect that the hourly wage could depend on working hours per week. Under what condition(s) would the estimates in (a) be biased and inconsistent due to the omission of the weekly working hours? Give a reasonable and intuitive story on why omission of the weekly working hours would cause omitted variable bias in the regression in (a). Based on your story, explain whether the coefficient on educ in (a) would be overestimated or underestimated.
(e) The variable hrswk is the average weekly working hours for each individual in the data. Regress ln(wage) on educ and hrswk and report the estimation results in a standard form. Discuss the estimation results. In particular, how would you revise your answer in (c)? Are the estimates statistically significant?
3. You are still concerned about omitted variable bias (OVB) in the regressions of Question 2. For that reason, you decide to regress ln(wage) on all other variables in the dataset and use this model as a benchmark.
(a) Report a 95% confidence interval for the slope coefficient on educ, explain the relationship between the confidence interval and hypothesis testing, and test the hypothesis that one year of additional education would increase hourly wage by 12%.
(b) Assuming there is no OVB, discuss the estimated coefficient on female in the benchmark model. In particular, explain what the estimated coefficient on female means on hourly wage, compare the effect of being female and the effect of one year of additional education, and discuss whether being female has a statistically significant effect on hourly wage.
(c) Using the estimation results of the benchmark model, test the hypothesis that the hourly wage is not affected by the geographic location. Explain how you reach your conclusion.
(d) Using the estimation results of the benchmark model, test the hypothesis that the wage differential associated with African American is equal to the wage differential associated with Asian American. Explain how you reach your conclusion.
(e) How would you modify the benchmark model to estimate the effects on hourly wage of one additional year of education separately for each gender. How do the effects of education differ between genders and is the difference statistically significant?
(f) Keoka is an African American woman, working in a metropolitan area. After she obtained her high school diploma, she got a job and started working instead of getting a higher education. She has never been married. Now she has a five-year of experience in the industry and is working full time (40 hours per week). Using the benchmark model, predict her hourly wage.
4. It may be more useful to estimate the effect on earnings of education by using the highest diploma/degree rather than years of schooling. Define four dummy variables to indicate educational achievements:
• lt hs = 1 if educ < 12
• hs = 1 if educ = 12
• col = 1 if educ ≥ 16
• some_col = 1 for all other values of educ.
(a) Create the dummy variables lt hs, hs, col, and some col as defined above and compute the sample means of hourly wage for each of the four education categories.
(b) Regress wage on the four dummies lt hs, hs, col, and some col. Can you obtain the OLS estimates? What is the problem here? Under what circumstances would you face this problem? To avoid this problem, you now regress wage on three dummies (lt hs, col, some col) excluding hs. Interpret the estimated intercept and compare the estimation results with the sample means calculated in (a).
Attachment:- Current Population Survey Data.rar