Install package (alr4) and load the "UN11" dataset from the book into R.
Fit a linear regression model with response variable fertility and predictors/regressors ppgdp, lifeExpF, and pctUrban.
(a) Report the regression output using summary(). Construct and include a scatterplot matrix of the response and three predictors/regressors. Construct a residual plot. What problems are apparent in the residual plot and scatterplot matrix? Now transform your response variable and predictor variable ppgdp and refit a linear regression model. That is, now use response variable log(fertility) and regressors log(ppgdp), lifeExpF, and pctUrban.
(b) Report the regression output using summary. Construct and include a scatterplot matrix of the response and three regressors. Construct a residual plot. Are the problems seen in part (b) still apparent?
(c) Which (if any) regression parameters are not significant? Explain. Specify the null and alternative hypotheses, as well as the p-value of the test you used to determine this.
Please do all parts in R.