Install and load the dataset named Carseats (in the ISLR package) into R.
Create a new d...
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
Answers: 2
Mathematics, 21.06.2019 13:20
In the triangle abc< angle c is a right angle. find the value of the trig function indicated. find tan a if a =12, b=5 a. 13/12 b. 12/13 c. 5/12 d.12/5
Answers: 2
Mathematics, 21.06.2019 19:30
Two corresponding sides of two similar triangles are 3cm and 5cm. the area of the first triangle is 12cm^2. what is the area of the second triangle?
Answers: 1
Mathematics, 21.06.2019 21:00
Deepak plotted these points on the number line. point a: –0.3 point b: – 3 4 point c: – 11 4 point d: –0.7 which point did he plot incorrectly?
Answers: 2
Mathematics, 04.02.2021 07:10
Mathematics, 04.02.2021 07:10
Mathematics, 04.02.2021 07:10
Mathematics, 04.02.2021 07:10
Mathematics, 04.02.2021 07:10
English, 04.02.2021 07:10
Mathematics, 04.02.2021 07:10