Learning Objectives

Objective 1

Convert dates using lubridate functions (ymd, dmy, mdy) for clinical data

Objective 2

Calculate study days (e.g., AESTDY = AESTDTC - RFSTDTC + 1)

Objective 3

Use stringr functions for text manipulation (str_detect, str_replace, str_trim)

Objective 4

Practice deriving AESTDY and cleaning adverse event

Objective 5

Handle date/time formats and missing date scenarios in clinical contexts

Training Materials

Theory

Overview of key concepts with annotated examples.

Demo

Live coding demonstration with step-by-step explanations.

Exercise

Hands-on coding exercises to practice the concepts learned.

Solution

Complete solutions and explanations for all exercises.