Usetutoringspotscode to get 8% OFF on your first order!

  • time icon24/7 online - support@tutoringspots.com
  • phone icon1-316-444-1378 or 44-141-628-6690
  • login iconLogin

R Assignment

A director of research at an acute care hospital observes an increase in patients returning to the hospital within 30 days. The director determines that this is harmful to patients as well as financially harmful to the hospital. The dataset hospital1 contains data on a study the director conducted to determine what factors are related to returning to the hospital within 30 days. The director wants to test the hypothesis that patients with and without spouses are not equally likely to return within 30 days. The null hypothesis would be that patients with and without spouses are equally likely to return to the hospital within 30 days.

Refer to your textbook and also the R screencast videos on this module’s lecture page for examples.

See pages 111123 in the Auerbach and Zeitlin text and the chi-square video on this module’s lecture page for examples.
Using the CrossTable() function in the gmodels package, create a table comparing “spouse” to “return30.” Interpret the findings you see. Specifically, was the criteria for rejection of the null hypothesis (H0) met? How can you tell?
Copy your table from RStudio and your findings to Word document. Use size-10 Courier font.
Upload your findings.

Requirements
Upload your data table and your findings by the deadline posted on this page.
Your work should be submitted in a document with 10-point Courier font.
This assignment will be graded on the basis of completion.

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes