R-language (urgent)

profilevinay R
vinayrquestins.docx

Given is the diabetic data file.

(1) Use R to construct the table given:

Race

Age Group

(0-20)

Age Group

(20-60)

Age Group

(60-80)

Age Group

(>80)

Race Type

Gender

Male

Female

Time in Hospital

Medical Specialty

A1C >7

A1C <= 7

A1C = None

Metformin

Repaglinide

Nateglinide

Glimepride

Rosiglitazone

Insulin

DiabetesMed

readmitted

Question 2: Use R to solve (A) or (B)

(A) Using the above table find if there is a difference between Genders based on Time in hospital, Readmitted, and A1C values. Use your own favorite statistical test and Construct flow diagram .and use R to solve your hypothesis.

(B) Using the above table find if there is a difference between Genders and Race based on Metformin, Insulinand Nateglinide. Use your own favorite statistical test to answer the question. Construct flow diagram as and use R to solve your hypothesis.

Question 3:

For the features used in Question 2, compute the odds ratio for Male vs Females.

C:\Users\hp\Downloads\WhatsApp Image 2021-04-01 at 20.17.23.jpeg C:\Users\hp\Downloads\WhatsApp Image 2021-04-01 at 20.17.25.jpeg