logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Gavin PhillipsData mining
(5/5)

876 Answers

Hire Me
expert
Francis OrtizPsychology
(5/5)

961 Answers

Hire Me
expert
Jarrod AlongeHistory
(5/5)

916 Answers

Hire Me
expert
rahul kumarOthers
(/5)

780 Answers

Hire Me
R Programming
(5/5)

Describe the shape of the distribution of the body mass index

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Question 1: Use the data set "Pima.tr" in the MASS package that includes a population of women who were at least 21 years old, of Pima Indian heritage and living near Phoenix, Arizona. They were tested for diabetes according to World Health Organization criteria. These data sets contains the following variables:

npreg: number of pregnancies. glu: plasma glucose concentration in an oral glucose tolerance test.

bp: diastolic blood pressure (mm hg).

skin: triceps skin fold thickness (mm).

bmi: body mass index (weight in kg/(height in m)\^2).

ped: diabetes pedigree function.

age: age in years.

Type: Yes or No, for diabetic according to WHO criteria.

Use R commands to conduct the following tasks

(a) Describe the shape of the distribution of the body mass index

(b) Construct the relative frequency distribution for the diabetic and non-diabetic women, represent these data as Pie-chart.

(c) Construct the frequency distribution of plasma glucose concentration using 6 intervals.

(d) Represent the previous distribution using different colors for each interval, and suitable labels.

(e) Is the skin fold thickness normally distributed

(f) Plot the boxplot for Skin Thickness differentiated by Diabetes.

(g) Test if the mean of the Skin Thickness has the same value between the two group diabetic and non-diabetic women.

(h) Conclude a regression model to describe the effect of being diabetic or not on the skin fold thickness.

(i) Add a new variable to the dataset named "obese" with the value TRUE if bmi> 30

(j) Test if the proportion of obese women is equal to lean women (hint: use prop.test() function) Question 2: Using the R code:

(a) Create a vector x of 100 random numbers from the standard normal distribution.

(b) Perform a basic descriptive analysis on x

(c) plot the histogram of x with suitable settings

Question 3:

Using the R commands:

Install the package ISwR, and View the “Blood Pressure Versus Obesity” dataset bp.obese.

(a) Conclude the linear regression equation

(b) Plot the scatter plot for obesity versus blood pressure, using different plotting characters(pch) to distinguishing the data between men and women (Hint: Use the R-documentation OR internet).

(c) Add a line representing the regression model to the previous scatter plot

(d) Add a legend to the graph depicting the different "pch" used to represent male and female (Hint: Use the Rdocumentation OR internet).

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme