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
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
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)
Step by step
Solved in 6 steps