3.6 Row vs Column Summaries

The default is to indicate percentages by columns (ie. percentages within columns add to 100). But you can also specify to show by row instead

rm_compactsum(data=pembrolizumab, xvars=c('change_ctdna_group','orr'), grp = 'cohort', effSize = T, show.tests = T, percentage = "row")
Full Sample (n=94) A (n=16) B (n=18) C (n=18) D (n=12) E (n=30) p-value Effect Size (95% CI) pTest effStat Missing
change ctdna group - Increase from baseline 40 8 (20%) 7 (18%) 5 (12%) 2 (5%) 18 (45%) 0.18 0.30 (0.20, 0.51) Fisher Exact Cramer’s V 21
orr - SD/PD 78 13 (17%) 18 (23%) 18 (23%) 4 (5%) 25 (32%) <0.001 0.55 (0.76, 1.02) Fisher Exact Cramer’s V 0