Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In rstudio ## Problem 1 In the diamonds dataframe create the variable price per carat (ppc) and then creae a boolean variable HiValue which is

In rstudio

## Problem 1 In the diamonds dataframe create the variable price per carat (ppc) and then creae a boolean variable HiValue which is true when the price per carat of a diamond is greater than the 90th percentile of this variable. Produce a table of the variable HiValue to verify that your code worked.

```{r} # Insert your code here. ```

## Problem 2 Create a logistic regression model, ppc1, with HiValue as the dependent variable. Display a summary of this model.

```{r} # Insert your code here. ```

## Problem 3 Create and display the accuracy rate and confusion matrix based on a threshold of .5.

```{r} # Insert your code here. ```

## Problem 4 Create the ROC curve for your model

```{r} # Insert your code here. ```

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

=+What kind of clients would work well in this medium?

Answered: 1 week ago

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago