Question
Fit the multiple linear regression model to the Carseats dataset with Sales as the response variable and all the other variables as well as the
Fit the multiple linear regression model to the Carseats dataset with Sales as the response variable and all the other variables as well as the interaction terms, Income x Advertising and Price x Age, as predictors (this is the model fit in the Lab). Then fit the model again, but this time add the argument:
contrasts = list(ShelveLoc=contr.treatment(c("Bad", "Good", "Medium"), base = 3))
This changes the dummy variables so that the 3rd level in the ShelveLoc factor ("Medium") is used as the baseline level. You should find that the model fit is identical for both models (other than the intercept estimate and the coefficient estimates for the dummy variables). What are the two dummy variable coefficient estimates? (Round your answers to 2 decimal places.)
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