compare_cohorts {allMT} | R Documentation |
Create an integrated summary graph facetted (by cohort). Graph illustrates weighted mean absolute neutrophil count (ANC) and dose information for each patient.
compare_cohorts(
input_files_path,
unit,
anc_range,
dose_intensity_threshold,
method,
intervention_date,
group_data_path
)
input_files_path |
Path to folder with MT csv files (in quotes) |
unit |
Choose either "million" or "billion".
|
anc_range |
Vector with lower and upper thresholds of absolute neutrophil count target range: (c(lower threshold, upper threshold))
|
dose_intensity_threshold |
numeric value of reference drug dose intensity (%). |
method |
Choose from "M1" or "M2".
|
intervention_date |
Only applicable if method = "M1". Provide date in yyyy-mm-dd format (in quotes) |
group_data_path |
Only applicable for method = "M2". Path to EXCEL FILE containing "group" information. Ensure "ID" and "Group" columns are present. |
Comparative summary graph
If more than one chort need to be compared then only "M2" method is applicable
cohort_path = paste0(system.file("extdata/processed_data/", package = "allMT"), "/")
compare_cohorts(input_files_path = cohort_path,
method = "M1", intervention_date = "2020-12-01",
unit = "billion", anc_range = c(0.75, 1.5), dose_intensity_threshold = 100)
group_path = system.file("extdata/grouped_data/group_data.xlsx", package = "allMT")
compare_cohorts(input_files_path = cohort_path,
method = "M2", group_data_path = group_path,
unit = "billion", anc_range = c(0.75, 1.5), dose_intensity_threshold = 80)