Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data Set for Assignment 1 2755525742 3 5 3 9 5 10 3 4 4 5 8 3 4 9 15 4 5 8
Data Set for Assignment 1 2755525742 3 5 3 9 5 10 3 4 4 5 8 3 4 9 15 4 5 8 3 2 3 5 9 4 5 6 9 3 6 3 2 6 4 5 5 4 8 4 6 13 4 6 3 2 3 4 6 6 6 8 6 3 4 4 10 4 6 3 9 3 9 4 7 10 14 4 6 5 10 4 4 9 4 3 6 8 5 7 6 9 3 12 11 5 2 9 4 4 5 6 4 2 2 The data in the table below give the duration in days of hospital stays of patients admitted to the hospital with C. Difficile. Use the data on the following page to: (1) Save the data to a CSV file and read into R for analysis. (2 points) (2) Make a histogram of the duration of days of hospital stays. Ensure the histogram is labelled appropriately. Use a width of 1 day. Describe the shape, center, and spread of the data. Are there any outliers? (5 points) (3) Find the mean, median, standard deviation, first and third quartiles, minimum and maximum of the durations of hospital stay in the sample. Summarize these values in a table that you create in EXCEL or WORD. In other words, do *not* simply copy and paste R output. You should be reporting a nicely labeled and formatted table. - Given the shape of the distribution, what is the best single number summary of the center of the distribution? - What is the best single number summary of the spread of the distribution? (5 points) (4) Assume that the literature on this topic suggests that the distribution of days of hospital stay are normally distributed with a mean of 5 and a standard deviation of 3. Use R to determine the probabilities belov stribution described above (you should not be using the data set given on the following page): Ctrl + Alt + A Ctrl + Alt + S (a) What perce the hospital for less than 10 days? (4 points) Ctrl + Alt + O (b) Recent pubCtrl+Alt+Fed that hypervirulent strains of C. Difficile are on the rise. Such strains investig ted with poor outcomes, including extended hospital stays. An Howing that the average hospital stay duration have increased versus published literature. He has a sample of 35 patients from his hospital. If the published data are consistent with the truth, what is the probability that the sample mean in his sample will be greater than 6 days? (4 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started