create_shorttable_from_gtsummary_compare_twogroups_timpoints {packDAMipd} | R Documentation |
Create a table to compare the descriptive analysis (short) from gtsummary of two groups, but at different timepoints
Description
Create a table to compare the descriptive analysis (short) from gtsummary of two groups, but at different timepoints
Usage
create_shorttable_from_gtsummary_compare_twogroups_timpoints(
variables,
gtsummary,
name_use,
timepoints
)
Arguments
variables |
variables that interested |
gtsummary |
a gtsummary object that contains summary parameters |
name_use |
name of the variable or category |
timepoints |
the timepoints at which the descriptive analysis is done |
Value
the table
Examples
eg_data <- as.data.frame(list(no = c(1, 2, 3, 4),
mark_at_1 = c(12, 34, 23, 45), gender = c("M", "F", "M", "F"),
mark_at_2 = c(12, 34, 23, 45)))
outcome_summary <- IPDFileCheck::get_summary_gtsummary(eg_data,
c("gender", "mark_at_1", "mark_at_2"), byvar = "gender")
variables <- "Mark"
k <- create_shorttable_from_gtsummary_compare_twogroups_timpoints(variables,
outcome_summary, "Category", c(1, 2))
[Package packDAMipd version 1.1.0 Index]