Session Ready
Exercise

Exploration of continuous endpoints

An outcome of interest in the Acupuncture study is the percentage change from baseline in headache score at 12 months. In this exercise, we will derive this variable and explore its distribution graphically. The ggplot2 library and Acupuncture dataset have been preloaded for this session.

Instructions
100 XP
  • Use the variables score.month12 and score.baseline to generate variables for the change and percentage change from baseline in headache score at 12 months in the Acupuncture dataset.
  • Use the ggplot() function to produce histograms to explore the distribution of pct.month12 within each group.