Question
These questions are supposed to be answered in R studio. If anyone can help me that would be great. 1 - Load the data-set jtrain
These questions are supposed to be answered in R studio. If anyone can help me that would be great.
1 - Load the data-set jtrain from the Wooldridge package. A - Find the minimum value for the total employees trained (totrain) variable in this data set. (2 points) B - Use conditional statement and replace the missing data points in total employees trained (totrain) variable with its median. (4 points) C - Draw a graph that represents the distribution of the average employee salary (avgsal). Add the necessary labels. (2 points) D - Look at variable (union) and find how many of the employees are unionized. (2 points) E - Draw a graph that represents the distribution of (union) variable. Add the necessary labels. (2 points) F - Draw a graph and visualize the relationship between total employees trained (totrain) and annual sales (sales) measured in dollars. (2 points) G - From part F what relationship do you observe between total employees trained (totrain) and annual sales (sales). Explain in 2 lines. (2 points) H - Regress the annual sales (sales) on total employees trained (totrain) where annual sales (sales) is the response variable and total employees trained (totrain) is the control variable. Estimate the parameters. (2 points) I - Assuming that the total number of employees trained (totrain) is zero, what would be the predicted value for the annual sales (sales)? (2 points) J - If total employees trained (totrain) increases by 5 hours what would be the predicted change in annual sales (sales) holding all unobservable factors affecting annual sales (sales) fixed. (2 points) K - Given your regression model draw the fitted regression line. (2 points) L - Find the fitted value for the 9th observation. Is the predicted value for the annual sales (sales) for the 9th observation overpredicted or underpredicted? Why? (2 points) M - Find the residual for the 10th observation. Is the predicted value for the annual sales (sales) for the 10th observation overpredicted or underpredicted? Why? (2 points) N - Find sum of the residuals. What do you observe? Explain in 2 lines. (2 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started