Skip to contents

Standardizes regimen names, derives regimen class, and creates an ordered response factor from raw CoMMpass treatment response data.

Usage

clean_treatment_data(trtresp_raw)

Arguments

trtresp_raw

Data frame of raw treatment response data with columns including patient/submitter ID, treatment line, regimen description, best response, and transplant status

Value

Cleaned data frame with standardized columns: `patient_id`, `treatment_line`, `regimen_name`, `regimen_class`, `best_response` (ordered factor), `stem_cell_transplant` (logical), `treatment_start_days` (integer)