Question: Can somebody please answer number 1. And copy r codes. Instruction: Write your answer to each problem and copy your R code! 1. The text
Can somebody please answer number 1. And copy r codes.

Instruction: Write your answer to each problem and copy your R code! 1. The text file "carseats.txt" is a data set containing sales of child car seats at different stores. It consists of following variables. Sales: Unit sales (in thousands) at each location. US: A factor with levels No and Yes to indicate whether the store is in the US or not. ShelveLoc: A factor with levels Bad, Good and Medium indicating the quality of the shelving location for the car seats at each location. Price: Price company charges for car seats at each location. a) Fit a multiple regression model to predict Sales using US and Price variables. b) Is at least one of the explanatory variables useful in predicting the Sales? If yes, provide your reasoning. c) Do both US and Price variables help to predict Sales? If yes, provide your reasoning
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
