Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!