Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. You have to load the data frame into memory with data(BreastCancer) in R studio. Now run str() and head() on BreastCancer and summary() on

1. You have to load the data frame into memory with data(BreastCancer) in R studio. Now run str() and head() on BreastCancer and summary() on just the Class column. Use R instructions to calculate the percent in each class, and print them with an appropriate heading using paste().

How many instances are there? What is your target column?

How many predictors are there? What type of data are the predictors?

What percentage of the observations are malignant?

2. Cell.size and Cell.shape are in one of 10 levels. Build a logistic regression model called glm0, where Class is predicted by Cell.size and Cell.shape. Do you get any error or warning messages? Google the message and try to decide what happened. Run summary on glm0 to confirm that it did build a model. Write a comment about why you think you got this warning message and what you could possibly do about it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions