Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

so I can send you the data you use to complete this work in a zip but an explanation of how to code this in

image text in transcribedso I can send you the data you use to complete this work in a zip but an explanation of how to code this in r studio would help

Computer Assignment-4 log(wage)=0+1educ+2exper+3tenure+4married+5black+6south+7urban+u Include commands \&o output (from R console), and your explanation corresponding to each question together. Note that data are in stata format, you need to use import > From stata in Rstudia. and report the results. Holding other factors fixed, what is the approximat difference in monthly salary between blacks and nonblacks? Is the difference 1. use MLB1 data statistically significant? a. First estimate a model of log(salary) on years, gamesyr, bavg, hrunsyr, and b. Extend the model to allow the return to education to depend on race and rbisyr. Drop the variable rbisyr. What happens to the size of coefficient and test whether the return to education does depend on race. (Hint: coefficient statistical significance of hrunsyr? on interaction term) b. Add the variables runsyn (runs per year), fldperc (fielding percentage) and c. Again start with the original model [in (a)], but now allow wages to differ sbasesyr (stolen base per year) to part (a) model (excluding rbisyr). Which of across four groups of people: married and black, married and nonblack, these factors are individually significant? Clearly state on what basis you single and black, and single and nonblack. (can be achieved through decide which variables are significant. including is c. In the model from part (b), test the joint significance of bavg, fldperc, and d. nteraction of the two indicators). What the estimated wage differential is sbasesyr. (Hint: you can do this in two ways (i) run restricted or unrestricted model, and use anova function or (ii) use linearHypothesis function from car library, see the Rscrint on Canvass). 2. The data set 401KSUBS contains information on net financial wealth (nettfa), age of the respondant (age), annual family income (inc), family size (fsize), and participation in certain pension plans. The wealth and income variable is recorded in thousands of dollars. For this question, use only the data for single person household (so fsize=1) a. How many single person households are there in the data? b. Estimate the model only using single person household: nettfa=0+1inc+2age c. Interpret the slope coefficients, are there any surprises in the slope coefficients? d. Find the p-value for the test H0:2=1 against 2 From stata in Rstudia. and report the results. Holding other factors fixed, what is the approximat difference in monthly salary between blacks and nonblacks? Is the difference 1. use MLB1 data statistically significant? a. First estimate a model of log(salary) on years, gamesyr, bavg, hrunsyr, and b. Extend the model to allow the return to education to depend on race and rbisyr. Drop the variable rbisyr. What happens to the size of coefficient and test whether the return to education does depend on race. (Hint: coefficient statistical significance of hrunsyr? on interaction term) b. Add the variables runsyn (runs per year), fldperc (fielding percentage) and c. Again start with the original model [in (a)], but now allow wages to differ sbasesyr (stolen base per year) to part (a) model (excluding rbisyr). Which of across four groups of people: married and black, married and nonblack, these factors are individually significant? Clearly state on what basis you single and black, and single and nonblack. (can be achieved through decide which variables are significant. including is c. In the model from part (b), test the joint significance of bavg, fldperc, and d. nteraction of the two indicators). What the estimated wage differential is sbasesyr. (Hint: you can do this in two ways (i) run restricted or unrestricted model, and use anova function or (ii) use linearHypothesis function from car library, see the Rscrint on Canvass). 2. The data set 401KSUBS contains information on net financial wealth (nettfa), age of the respondant (age), annual family income (inc), family size (fsize), and participation in certain pension plans. The wealth and income variable is recorded in thousands of dollars. For this question, use only the data for single person household (so fsize=1) a. How many single person households are there in the data? b. Estimate the model only using single person household: nettfa=0+1inc+2age c. Interpret the slope coefficients, are there any surprises in the slope coefficients? d. Find the p-value for the test H0:2=1 against 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bookkeeping And Accounting

Authors: Greg Shields

1st Edition

1983673536, 978-1983673535

More Books

Students also viewed these Accounting questions