Prepare survival data from clinical and cytogenetic data
Source:R/04_survival_analysis.R
prepare_survival_data.RdConstructs a data frame suitable for survival analysis from GDC clinical data. Uses `days_to_death` for deceased patients and `days_to_last_follow_up` for censored (alive) patients. Merges with cytogenetic risk groups when available.
Value
Data frame with columns: patient_id, time_days, status (0=censored, 1=dead), age_years, gender, iss_stage, risk_group, plus individual cytogenetic markers