Skip to contents

Identifies the maximum grade of each side effect and its corresponding timepoint.

Usage

get_max_side_effects(
  df,
  endpoints,
  max_grade = 0,
  export_to_excel = FALSE,
  file_name = "max_side_effects.xlsx"
)

Arguments

df

A data frame with side effect columns across multiple timepoints

endpoints

A character vector of endpoint basenames

max_grade

Numeric threshold for filtering results

export_to_excel

Whether to export results to Excel

file_name

Name of the Excel file if exporting

Value

A data frame with maximum side effect values and timepoints

Examples

if (FALSE) { # \dontrun{
endpoints <- c("bladder_pain", "gastro_diarrhea")
result <- get_max_side_effects(patient_data, endpoints, max_grade=2)
} # }