Chat with us, powered by LiveChat

Suppose a car has 16 mpg. How would you classify the transmission: automatic or manual? Explain and show how you classified the transmission.

Description

In this assignment, we examine classification using logistic regression. In R console, type mtcars. The dataset mtcars is a generic dataset in R. This dataset comprises of fuel consumption and 10 aspects of automobile design and performance for 32 automobiles. Using only the variables am (0 = automatic, 1 = manual) and mpg, your task is to fit a logistic regression model. Complete the following steps using R.

Create a scatter plot of am vs. mpg. Describe the relationship and explain why a simple linear regression model may not be suitable.

Using the variables am and mpg, fit a logistic regression model. Use the function glm().

Write out the estimated model.

Suppose a car has 16 mpg. How would you classify the transmission: automatic or manual? Explain and show how you classified the transmission.

Copy and paste the appropriate R graph and output into a Word document. If you take a screen shot make sure that it shows the current date.