eg_data <- as.data.frame(list(no = c(1,2,3,4), mark = c(12,34,23,45),
gender = c("M", "F", "M", "F")))
outcome_summary <- IPDFileCheck::get_summary_gtsummary(eg_data,
c("gender", "mark"), byvar = "gender")
variables <- "Mark"
create_table_from_gtsummary_compare_twogroups(variables,
outcome_summary, "Category")
Run the code above in your browser using DataLab