CLiREN-LMS
Data Cleaning and Preparation in R

Creating Derived Variables

Overview

30-45 minutes Applied Step 1 of 12
Overview

Overview

1 / 12
Derived variables are variables calculated from one or more existing variables. They are common in clinical research. Examples include age at enrollment, length of hospital stay, body mass index, visit window status, outcome timing, eligibility flags, and composite endpoint indicators. Derived variables can make reports and analysis easier, but they must be created carefully because errors in derivation can affect study conclusions.