1999 and 2001, 121 had been admitted on a weekend and  379 had been admitted on a weekday. This compares with a large population of people at risk  for such complications in which 13.9% are admitted on weekends and 86.1% are admitted on  weekdays. a) In the 500 sampled patients with severe complications, what fraction had been  admitted on weekends? Is this higher or lower than the fraction of all at-risk patients  admitted on weekends?  b) Name two statistical methods that could be used to test whether the

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

I mainly need help with part D. I'm not sure how to write the code to use in R to get the values needed. 

Question 1. 
Are the outcomes of hospital care different on weekends than weekdays? In a random sample 
of 500 patients who experienced severe medical complications after admission to acute care 
wards in three U.S. states from 1999 and 2001, 121 had been admitted on a weekend and 
379 had been admitted on a weekday. This compares with a large population of people at risk 
for such complications in which 13.9% are admitted on weekends and 86.1% are admitted on 
weekdays.
a) In the 500 sampled patients with severe complications, what fraction had been 
admitted on weekends? Is this higher or lower than the fraction of all at-risk patients 
admitted on weekends? 
b) Name two statistical methods that could be used to test whether the probability of 
severe complications in at-risk patients admitted to hospitals differs between
weekend and weekday. State the advantages and disadvantages of both. 
c) State the null and alternative hypotheses for such a test.
d) Carry out a statistical test of the hypotheses. Report the test statistic, P-value, state
your conclusions. (Carry out the test in RStudio)

Expert Solution
steps

Step by step

Solved in 6 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman