# Simulated clinical data
clinical_df <- clinical_data()
# Overall summary without considering treatment groups
summary_table(clinical_df,
exclude = c('participant_id', 'visit'))
# Grouped summary by treatment group
summary_table(clinical_df,
group_by = 'treatment',
exclude = c('participant_id', 'visit'))
# Grouped summary by treatment group with all stats and effect size
summary_table(clinical_df,
group_by = 'treatment',
all = TRUE,
effect_size = TRUE,
exclude = c('participant_id', 'visit'))
Run the code above in your browser using DataLab