Question: can somebody please help me solve problem 2 . And copy the r codes. 2. The text file carseats2.txt is a data set containing sales

can somebody please help me solve problem 2 . And copy the r codes.


2. The text file "carseats2.txt" is a data set containing sales of child car seats at different stores. It consists of following variables. HighSales: Yes and No indicating whether the store belongs to high sale store category Price: Price company charges for car seats at each location. US: A factor with levels No and Yes to indicate whether the store is in the US or not. a) Fit a logistic regression model to predict the probability of the store belongs to high sale store category using Price variable. Report summary() result. (Hint: Use HighSales as response variable and Price as explanatory variable in the model.) b) Provide an interpretation of the estimated coefficient for Price variable c) For a store charging 100 for the car seat, what is the predicted probability of the store belongs to high sale store category?d) Fit a multiple logistic regression model to predict the probability of the store belongs to high sale store category using Price and US variables. Report summary() result. e For a store located in US and charging 100 for the car seat, what is the predicted probability of the store belongs to high sale store category? f) For a store located outside US and charging 100 for the car seat, what is the predicted probability of the store belongs to high sale store category
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
