Question
Prestige data from library(alr4). Give a program in R that models prestige as a function of education and income. Your program should investigate model diagnostics
Prestige data from library(alr4).
Give a program in R that models prestige as a function of education and income. Your program should investigate model diagnostics and implement any necessary transformations on the predictors and/or the response. Specifically, your program should do the following: Fit the (untransformed) model and produce residual plots and hypothesis tests of the linearity assumption. Use the powerTransform function to estimate power transformations for the two predictor variables. Fit the transformed model and reproduce the residual plots and linearity tests. Use the Box-Cox procedure to determine if a transformation of the response is also required. If so, implement the transformation. Report the summary of your final model.
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