[Solved] R-Assignment 2

$25

File Name: R-Assignment_2.zip
File Size: 131.88 KB

SKU: [Solved] R-Assignment 2 Category: Tag:
5/5 - (1 vote)
  1. Using the plot(s) of your choice, assess whether there is an association between the sex of the patient and their resting heart rates, i.e. is there a difference in distribution of the resting heart rates across the sexes? Explain your answer.
  2. Produce a stacked barplot showing the distribution of Chest Pain Type for each level of RestingECG.
  3. Produce a summary table containing counts and proportions of RestingECG category for each sex/ChestPainType factor combination.
  4. Create a summary table that finds the mean, median and IQR of RestingBP, Cholesterol, FastingBS, and MaxHR for each of the Chest Pain Types and report those results in a tibble where the columns are the levels of Chest Pain Types and the summary statistics are in the rows.
  5. Using the plot(s) of your choice, explain which of the following measurements seem most strongly associated with Heart Disease (heart disease vs. normal) : RestingBP, Cholesterol, FastingBS, and

MaxHR.

  1. Create both a 2-d histogram and a 2-d contour plot to assess the association betwen RestingBP and MaxHR. Describe this association and also explain which plot you think shows the association most clearly (or explain why they are about the same).
  2. Using the plot(s) of your choice, determine whether the association in (f) depends on either the Chest Pain Type or the Heart Disease status (or both).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] R-Assignment 2
$25