Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Rstudio Answer #1,2,3,4 Load the libraries. ```{r} library(tidyverse) library(broom) ``` ## Problem 1 In the diamonds dataframe create the variable price per carat (ppc)

In Rstudio Answer #1,2,3,4

Load the libraries.

```{r} library(tidyverse) library(broom) ```

## 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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago

Question

What is job enlargement ?

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago