create_table_from_gtsummary_compare_twogroups: Create a table to compare the descriptive analysis from...

View source: R/general_help_functions.R

create_table_from_gtsummary_compare_twogroupsR 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")

packDAMipd documentation built on May 29, 2024, 3:18 a.m.