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 12:50
What is the pattern in the values as the exponents increase?
Answers: 3
question
Mathematics, 21.06.2019 13:30
Abee with velocity vector r'(t) starts out at (5, βˆ’5, βˆ’3) at t = 0 and flies around for 5 seconds. where is the bee located at time t = 5 if 5 0 r'(u)du = 0?
Answers: 1
question
Mathematics, 21.06.2019 18:40
Acircle has a circumference of 28.36 units what is the diameter of the circle
Answers: 2
question
Mathematics, 22.06.2019 00:50
Match the following reasons with the statements given to create the proof. 1. do = ob, ao = oc sas 2. doc = aob given 3. triangle cod congruent to triangle aob vertical angles are equal. 4. 1 = 2, ab = dc if two sides = and ||, then a parallelogram. 5. ab||dc if alternate interior angles =, then lines parallel. 6. abcd is a parallelogram cpcte
Answers: 3
You know the right answer?
Install and load the dataset named Carseats (in the ISLR package) into R.

Create a new d...
Questions
question
Computers and Technology, 21.11.2020 07:10
question
Mathematics, 21.11.2020 07:10
question
Mathematics, 21.11.2020 07:10
question
Mathematics, 21.11.2020 07:10
question
Chemistry, 21.11.2020 07:10
question
English, 21.11.2020 07:10
question
Mathematics, 21.11.2020 07:10