here u go
Q: Provide an example where an ANOVA might be useful in “the real-world” of healthcare.
Make-up a small dataset to demonstrate.
Run an analysis in R and discuss results.
I will be using ANOVA to determine patient comfort feedback regarding wait time in order to receive care at the radiology department.
> wait<-c(40,30,15,10,50,42,19,10,5,20,23,14,10,20,50)
> comfort<-gl(2,7,labels=c("satisfied","unsatisfied"))
> wait<-c(40,30,15,10,50,42,19,10,5,20,23,14,10,20)
> comfort<-gl(2,7,labels=c("satisfied","unsatisfied"))
> sdata
<-data.frame(comfort,wait)
> sdata
comfort wait
1 satisfied 40
2 satisfied 30
3 satisfied 15
4 satisfied 10
5 satisfied 50
6 satisfied 42
7 satisfied 19
8 unsatisfied 10
9 unsatisfied 5
10 unsatisfied 20
11 unsatisfied 23
12 unsatisfied 14
13 unsatisfied 10
14 unsatisfied 20
> by(sdata$wait,sdata$comfort,stat.desc)
sdata.aov<-aov(sdata$comfort~sdata$wait)