subject
Mathematics, 11.02.2020 18:29 ChessieGiacalone

Install and load the dataset named Carseats (in the ISLR package) into R.

Create a new dataframe that is a copy of Carseats. Create two indicator (dummy) variables:

Bad_Shelf = 1 if ShelveLoc = "Bad", 0 otherwise

Good_Shelf = 1 if ShelveLoc = "Good", 0 otherwise

Also, create two interaction variables:

Price_Bad_Shelf = Price* Bad_Shelf

Price_Good_Shelf = Price* Good_Shelf

For Questions 1-2, please estimate a linear regression model (using the lm function) with Sales as the dependent variable and Price, Bad_Shelf, Good_Shelf, Price_Bad_Shelf, and Price_Good_Shelf as independent variables.

Question 1

For the model, does Bad_Shelf have an Intercept significantly (statistically) different from that of the base case?

a) Yes

b) No

c) Maybe

d) Not enough information

Question 2

For the model in Question 2, do the products located on Good_Shelf have a significantly (statistically) different Price coefficient from that of the base case?

a) Yes

b) No

c) Maybe

d) Not enough information

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 18:30
Which value would be a solution for x in the inequality 47-4x< 7
Answers: 1
question
Mathematics, 21.06.2019 20:30
Is the point (0, 8) on the x-axis or y-axis? how do you know?
Answers: 2
question
Mathematics, 22.06.2019 02:40
Ineed ! i can’t figure out this graph
Answers: 1
question
Mathematics, 22.06.2019 03:00
(: the two box-and- whisker plots below show the scores on a math exam for two classes. what 2 things do the interquartile range tell you about the two classes?
Answers: 2
You know the right answer?
Install and load the dataset named Carseats (in the ISLR package) into R.

Create a new d...
Questions
question
Social Studies, 29.06.2019 03:30
question
History, 29.06.2019 03:30
Questions on the website: 13722363