Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

image text in transcribedimage text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Core Concepts Of Accounting Information Systems

Authors: Nancy A. Bagranoff, Mark G. Simkin, Carolyn Strand Norman

11th Edition

9780470507025, 0470507020

Students also viewed these Mathematics questions