2.5 Row vs Column Summaries

The default is to indicate percentages by columns (ie percentages within columns add to 100)

rm_covsum(data=pembrolizumab, maincov = 'sex',
covs=c('cohort'),
pvalue = FALSE)
Full Sample (n=94) Female (n=58) Male (n=36)
cohort
A 16 (17) 3 (5) 13 (36)
B 18 (19) 18 (31) 0 (0)
C 18 (19) 18 (31) 0 (0)
D 12 (13) 7 (12) 5 (14)
E 30 (32) 12 (21) 18 (50)

But you can also specify to show by row instead

rm_covsum(data=pembrolizumab, maincov = 'sex',
covs=c('cohort'),
pvalue = FALSE,
percentage='row')
Full Sample (n=94) Female (n=58) Male (n=36)
cohort
A 16 3 (19) 13 (81)
B 18 18 (100) 0 (0)
C 18 18 (100) 0 (0)
D 12 7 (58) 5 (42)
E 30 12 (40) 18 (60)