Use “service” to assess if there is any difference in duration of hospital stay based on what type of service medical or surgical the patient received during the 25 days in hospital (Key medical=1, surgical=2) what is the sample size, mean and standard deviation?

Duration stay Service
Dur_stay
5.............................1
10............................1
6.............................2
11............................2
5.............................2
14............................2
30............................1
11............................1
17............................1
3.............................2
9.............................1
3.............................2
8.............................2
8.............................2
5.............................2
5.............................2
7.............................2
4.............................2
3.............................1
7.............................2
9.............................2
11............................2
11............................1
9.............................2
4.............................1



(work)
Medical service mean (days in hosp 5,10,30,11,17,9,3,11,4)= 100 divided by sample size of 9 = 11.11

Surgical service mean (days in hosp 6,11,5,14,3,3,8,8,5,5,7,4,7,9,11,9)=115 divided by sample of 16=7.19

Standard deviation= square root of variance
Variance of 5,10,30,11,17,9,3,11,4 (Medical service days in hosp)= 68.86
Square root of 68.86=8.29

Variance of 6,11,5,14,3,3,8,8,5,5,7,4,7,9,11,9)(surgical service days in hosp)=9.629
Square root of 9.629=3.10

Same here.