Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following questions concern data entered into R software to produce the answer to the following questions.. In T2DRecords.csv data below (converted to jpeg in

The following questions concern data entered into R software to produce the answer to the following questions..

In "T2DRecords.csv" data below (converted to jpeg in order to attach to this question), five independent variables are used to predict the probability that a patient has type 2 diabetes. The independents are:

BodyWeight:Each patient's body weight reported in the survey.

GymVisits:Each patient's number of visits to gyms every week.

State:In which state each patient is current residing in. The assumption is certain local diet may increase the risk of getting type 2 diabetes.

SurgarIntake:The average amount of sugar each patient takes every week.

ChLevel:Each patient'scholesterol level measured in this survey.

The dependent variable in this data set isT2Dwith 1 indicating a patient has type 2 diabetes and 0 indicating a patient does not have type 2 diabetes.

Questions:

1. Build a logistic regression model, and use all given independent variables to predict the probability that a patient has type 2 diabetes. In your assignment submission, please make a screen capture of your analysis results. Please indicate which independent variables are significant, and the practical implications if they are significant.

2. Build a decision tree model, and use all given independent variables to predict the probability that a patient has type 2 diabetes. In your assignment submission, please make a screen capture of your analysis results. Also, depict the data in a decision tree diagram to visualize your analysis.

3. Use the ROC curve to compare which model is more accurate in prediction based on the current data set. Please make screen captures of the ROC curves you build.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

Discrete Mathematics, Edition

Authors: Seymour Lipschutz, Marc Lipson

4th Edition

126425881X, 9781264258819

More Books

Students also viewed these Mathematics questions

Question

=+b) What was the purpose of using Major as a blocking factor?

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago