R-codes :
library(ISLR)
data("Carseats")
csData=Carseats
str(csData)
lmModel<-lm(Sales~.,data = csData)
plot(lmModel,1)
plot(lmModel,3)
Plot-1:
Plot-2:
Conclusion:
After studying above Plot-1 and Plot-2, we observe there is no pattern and Red line is almost horizontal.
Hence, no need to transform the predicted values.
Get Answers For Free
Most questions answered within 1 hours.