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

In R Studio: Consider the following data, taken from a study that investigates t

ID: 2935188 • Letter: I

Question

In R Studio:

Consider the following data, taken from a study that investigates the accuracy of death certificates. In two different hospitals, the results of 575 autopsies were compared to the causes of death listed on the certificates. One of the hospital that participated in the study was a community hospital, labeled A; the other was a university hospital, labeled B. Perform a hypothesis testing step by step and determine whether the results of the study suggest different practices in completing death certificates at the two hospitals Wearing Helmet Confirmed Inaccurate Incorrect Total Hospital Accurate No Change Recording 18 268 425 54 34 229 346 575 Total 62

Explanation / Answer

> M <- as.table(rbind(c(157,18,54), c(268,44,34)))
> dimnames(M) <- list(Hospital = c("A", "B"),
+ Wearing.Helmet = c("Confirmed.Accurate","Inaccurate.N.change",
+ "Incorrect.Recording"))
> M
Wearing.Helmet
Hospital Confirmed.Accurate Inaccurate.N.change Incorrect.Recording
A 157 18 54
B 268 44 34
> chisq.test(M)

Pearson's Chi-squared test

data: M
X-squared = 21.523, df = 2, p-value = 2.12e-05

Conclusion: The estimated p-value is less than 0.0001. Hence, we can conclude that there is the significant association between the Hospital and Wearing helmet at 0.05 level of significance.

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