Session Ready
Exercise

Analysis sets

Here we will generate a Per Protocol analysis set in the Acupuncture dataset. We want it to comprise patients who:

  • do not withdraw from the study, AND either
    • are assigned to acupuncture and complete the treatment OR
    • are assigned to control and correctly do not receive acupuncture.

Note, here the Acupuncture dataset has been loaded and attached for coding ease.

Instructions
100 XP
  • In the Acupuncture dataset, tabulate the variables withdrawal.reason.
  • Tabulate completedacupuncturetreatment by treatment.group.
  • Use these variables to generate a per protocol flag that includes patients with missing withdrawal.reason and either completedacupuncturetreatment equal to 1 where assigned to Acupuncture, or completedacupuncturetreatment is missing where assigned to "Control".
  • Tabulate the number created per protocol flag.