Performs comprehensive preprocessing for EMBRACE-II data. This function adds EMBRACE-II specific columns after the common columns have been added via process_combined_data. The processing includes:
Usage
process_emii_data(
data,
file_path = here::here("data_raw/embrace_II/2023-01-18_emii_masterdump.Rds")
)
Details
1. Adding T-Score data 2. Calculating TRAK (Total Reference Air Kerma) absolute values 3. Classifying needle arrangements (parallel/oblique) 4. Computing overall treatment time (OTT) 5. Adding elective target information 6. Identifying patients lost to follow-up or who withdrew consent 7. Adding disease event indicators (local/nodal/systemic failures) 8. Counting common iliac lymph nodes
Examples
if (FALSE) { # \dontrun{
# Load raw data
raw_data <- load_combined_embrace()
# Process with common transformations
common_data <- process_combined_data(raw_data)
# Add EMBRACE-II specific transformations
processed_data <- process_emii_data(common_data)
} # }