Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Hospital staydata is from a larger dataset collected on people discharged fr

ID: 3021031 • Letter: T

Question

The Hospital staydata is from a larger dataset collected on people discharged from a selected Pennsylvania hospital as part of a retrospective chart review of antibiotic usage in hospitals.

QUESTION...

(a) perform Chisq-test to examine the relationship between gender and the service performed. (b) To test if the duration of hospital stay is affected by whether a patient has receive antibiotics. (c) Recode age to two group: 30 and >30, then setup an inferential test to test if patients with age>30 are more likely to receive antibiotics

DATA....

ID# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Dur_stay 5 10 6 11 5 14 30 11 17 3 9 3 8 8 5 5 7 4 3 7 9 11 11 9 4

Age 30 73 40 47 25 82 60 56 43 50 59 4 22 33 20 32 36 69 47 22 11 19 67 43 41

Sex 2 2 2 2 2 1 1 2 2 1 2 1 2 2 2 1 1 1 1 1 1 1 2 2 2

VARIABLE EXPLANATION....

Dur_stay Duration of hospital stay

Sex 1=M 2=F

Temp First temp. following admission WBC First WBC (x103) following admission

Antibio Received antibiotics 1=yes 2=no

Bact_cul Received bacterial culture 1=yes 2=no

Service 1=med. 2=surg

Temp 99 98 99 98.2 98.5 96.8 99.5 98.6 98 98 97.6 97.8 99.5 98.4 98.4 99 99.2 98 97 98.2 98.2 98.6 97.6 98.6 98

WBC 8 5 12 4 11 6 8 7 7 12 7 3 11 14 11 9 6 6 5 6 10 14 4 5 5

Antibio 2 2 2 2 2 1 1 2 2 2 2 2 1 1 2 2 1 2 1 2 2 1 2 2 2

Bact_cul 2 1 2 2 2 2 1 2 2 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2

Service 1 1 2 2 2 2 1 1 1 2 1 2 2 2 2 2 2 2 1 2 2 2 1 2 1

Explanation / Answer

a)Here Ho:Duration of Stay and Antibiotic are independent against H1;Duration of Stay and Antibiotic are dependent

Now with the help of the following R code we get

ared = 15.4927, df = 11, p-value = 0.161

Hence p value >0.05 So at 5% level of significance we accept Ho that

b)Here Ho: Gender and Service Performed are independent against H1;Gender and service performed are dependent

Now with the help of the following R code we get

X-squared = 14.1775, df = 11, p-value = 0.2233

Hence p value >0.05 So at 5% level of significance we say Duration of Stay and Antibiotic are independent .

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote