create_table_from_gtsummary_compare_twogroups {packDAMipd} | R Documentation |
Create a table to compare the descriptive analysis from gtsummary of two groups
Description
Create a table to compare the descriptive analysis from gtsummary of two groups
Usage
create_table_from_gtsummary_compare_twogroups(variables, gtsummary, name_use)
Arguments
variables |
variables that interested |
gtsummary |
a gtsummary object that contains summary parameters |
name_use |
name of the variable or category |
Value
the table
Examples
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")
[Package packDAMipd version 1.1.0 Index]