Session Ready
Exercise

Equivalence trials

Here we will test the equivalence claim in a trial comparing two different methods to prevent depression relapse in high-risk patients. The delta is 11%. The analysis will use the two one-sided tests approach.

The dplyr and magrittr libraries and the relapse.trial dataset have been preloaded for this session.

Instructions
100 XP
  • Explore the relapse.trial dataset using the head() function.
  • Summarize the numbers and percentage of patients in each of the treatment groups who did and did not relapse.
  • Use prop.test() to compare the relapse proportions at the 5% significant level by generating the 90% confidence interval for the difference.