3.4 Using Mean Summary Statistic Instead of Median
The default summary statistic for numerical variables is median. To specify which numerical variables should have mean displayed instead, change the use_mean
argument. Unspecified xvars will use the default median
rm_compactsum(data=pembrolizumab, xvars=c('age','pdl1','change_ctdna_group'), grp = 'sex', use_mean = c("pdl1"), effSize = T, show.tests = T)
Full Sample (n=94) | Female (n=58) | Male (n=36) | p-value | Effect Size (95% CI) | Missing | pTest | effStat | |
---|---|---|---|---|---|---|---|---|
age | 59.1 (49.5-68.7) | 56.6 (45.8-67.8) | 61.2 (52.0-69.4) | 0.30 | 0.11 (-0.10, 0.21) | 0 | Wilcoxon Rank Sum | Wilcoxon r |
pdl1 | 13.9 (29.2) | 15.0 (30.5) | 12.1 (27.3) | 0.63 | 0.10 (-0.37, 0.20) | 1 | t-test | Cohen’s d |
change ctdna group - Increase from baseline | 40 (55%) | 21 (52%) | 19 (58%) | 0.84 | 0.02 (-0.19, 0.05) | 21 | ChiSq | Cramer’s V |