Skip to contents

Generates a formatted table comparing algorithm-recommended elective targets with those actually selected by treatment centers. Shows the distribution of treatment field selections and highlights potential discrepancies between recommendations and clinical practice.

Usage

emii_create_elective_targets_table(
  data,
  save_excel = FALSE,
  file_path = "emii_elective_targets.xlsx"
)

Arguments

data

EMBRACE-II data frame with elective target information

save_excel

Logical; if TRUE, saves the table data to an Excel file (default: FALSE)

file_path

File path for Excel output (default: "emii_elective_targets.xlsx")

Value

A gt table object comparing algorithm-recommended vs. selected elective targets

Examples

if (FALSE) { # \dontrun{
emii_data <- load_embrace_ii() %>% emii_add_elective_targets()
comparison_table <- emii_create_elective_targets_table(emii_data)
comparison_table <- emii_create_elective_targets_table(emii_data, save_excel = TRUE)
} # }