How much does education affect wage rates? The data file cps4_small.dat contains 1000 observations on hourly wage rates, education, and other variables from the 2008 Current Population Survey (CPS). (a) Estimate the linear regression WAGE = B1 B2EDUC + € (use the command lm ( ) ) What is the average effect of an aditional year of education on wage? (b) Calculate the least squares residuals and plot them against EDUC. Should any patterns be evident in the least squares residuals? Hint: suppose you call your regression as reg, then you can plot the residuals using the command: plot(cps4_small$educ, reg$resid, xlab = 'educ', ylab = 'residuals') (e) Estimate the quadratic regression WAGE ' = α1 + α2EDUC² + e. Estimate the marginal effect (that is the slope Ay/Ax) of an additional year of education on wage for a person with 12 years of education, and for a person with 14 years of education. Compare these values to the estimated marginal effect of education from the linear regression in part (b). (f) Plot a scatter plot of wage and eductaion with the fitted linear model from part (b) and the fitted values from the quadratic model from part (e) in the same graph with the data on WAGE and EDUC. Which model appears to fit the data better? Hint: If you call your first regression as reg and your second regression as reg2, You can generate the plot using the following commands: plot(cps4_small$educ, cps4_small$wage) i <- order(cps4_small$educ) (get indices that order the vector) lines (cps4_small$educ[i], fitted (reg) [i], col = 'blue') lines (cps4_small$educ[i], fitted (reg2) [i], col = 'red') (g) Construct a histogram of In(WAGE). Compare the shape of this histogram to that for WAGE from part a. Which appears more symmetric and bell-shaped? Hint: The histograms can be generated using the following commands: hist (cps4_small$wage,20) hist (log(cps4_small$wage), 20) (h) Estimate the log-linear regression In(WAGE) = Y1 + Y2EDUC + e. Estimate the marginal effect of another year of education on wage for a person with 12 years of education, and for a person with 14 years of education.
How much does education affect wage rates? The data file cps4_small.dat contains 1000 observations on hourly wage rates, education, and other variables from the 2008 Current Population Survey (CPS). (a) Estimate the linear regression WAGE = B1 B2EDUC + € (use the command lm ( ) ) What is the average effect of an aditional year of education on wage? (b) Calculate the least squares residuals and plot them against EDUC. Should any patterns be evident in the least squares residuals? Hint: suppose you call your regression as reg, then you can plot the residuals using the command: plot(cps4_small$educ, reg$resid, xlab = 'educ', ylab = 'residuals') (e) Estimate the quadratic regression WAGE ' = α1 + α2EDUC² + e. Estimate the marginal effect (that is the slope Ay/Ax) of an additional year of education on wage for a person with 12 years of education, and for a person with 14 years of education. Compare these values to the estimated marginal effect of education from the linear regression in part (b). (f) Plot a scatter plot of wage and eductaion with the fitted linear model from part (b) and the fitted values from the quadratic model from part (e) in the same graph with the data on WAGE and EDUC. Which model appears to fit the data better? Hint: If you call your first regression as reg and your second regression as reg2, You can generate the plot using the following commands: plot(cps4_small$educ, cps4_small$wage) i <- order(cps4_small$educ) (get indices that order the vector) lines (cps4_small$educ[i], fitted (reg) [i], col = 'blue') lines (cps4_small$educ[i], fitted (reg2) [i], col = 'red') (g) Construct a histogram of In(WAGE). Compare the shape of this histogram to that for WAGE from part a. Which appears more symmetric and bell-shaped? Hint: The histograms can be generated using the following commands: hist (cps4_small$wage,20) hist (log(cps4_small$wage), 20) (h) Estimate the log-linear regression In(WAGE) = Y1 + Y2EDUC + e. Estimate the marginal effect of another year of education on wage for a person with 12 years of education, and for a person with 14 years of education.
Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,