Homework - Test of Hypotheses

Author

Marcio A Diniz

Published

November 10, 2022

Homework 04

Deadline: December, 1st

Format: HTML and Rmd

Submit to: michael.luu@cshs.org

Instructions

For the dataset emergency, compare patients who died and did not die regarding age, gender, systolic blood pressure,C-reactive protein, leukocytes, and length of stay. For each variable,

  1. Define the statistical null and alternative hypotheses for all tests;
  2. Choose the appropriate test for each variable and justify your choice;
  3. Interpret the 95% confidence interval;
  4. Make a decision at 5% significance level.
Hint

Use the function fisher.test or chisq.test to perform Fisher’s exact test and Chi-Square test, respectively.