Session Ready
Exercise

Exploration of binary endpoints

Another outcome of interest is whether the percentage decrease from baseline in headache score at Month 12 was greater than 35%. Here we will derive this and present the numbers and percentages in each category.

The dplyr and magrittr libraries and Acupuncture dataset have been preloaded for this session.

Instructions
100 XP
  • Filter Acupunture for rows where pct.month12 is not missing.
  • Add a binary response variable (resp35.month12) to indicate whether the percentage decrease of pct.month12 from baseline is greater than 35%. Negative values for pct.month12 represent percentage decreases.
  • Tabulate the counts of each category of resp35.month12. Code for generating the percentages in each category is provided.