2.Hospital Stays: Suppose we are interested in comparing the
length of stay in days in two hospitals for patients with the same
diagnosis and get the following data:
Hospital 1: 21,10,32,60,8,44,29,5,13,26,33
Hospital 2: 86, 27, 10, 68, 87, 76, 125, 60, 35, 73, 96, 44,
238
a)Use a two-sample t-test to test for the difference in
means.
b)Explain why the p-value from the t-test in part (a) may not be
accurate.
c)Perform an appropriate non-parametric test and compare your
results to those in part (a). Do your conclusions change?
Discuss.
d)It turns out there is also a question about whether there is a
gender difference in length of stay at either hospital. The
accompanying data file(PHCJ615 HW1 Data.csv)includes a grouping
variable with 1 corresponding to males at hospital1, 2
corresponding to females at hospital 1, 3 corresponding to males at
hospital 2 and 4 corresponding to females at hospital 2. Use a
Kruskal-Wallis test to check whether there are differences in
length of stay among these four groups of subjects. If there
are,describe as carefully as you can what the patterns of
differences are.