2 Summary statistics
Basic summary statistics
rm_covsum(data=pembrolizumab,
covs=c('age','sex'))
n=94 | |
---|---|
age | |
Mean (sd) | 57.9 (12.8) |
Median (Min,Max) | 59.1 (21.1, 81.8) |
sex | |
Female | 58 (62) |
Male | 36 (38) |
Set IQR = T
for interquartile range instead of Min/Max
rm_covsum(data=pembrolizumab,
covs=c('age','sex'),IQR=TRUE)
n=94 | |
---|---|
age | |
Mean (sd) | 57.9 (12.8) |
Median (Q1,Q3) | 59.1 (49.5, 68.7) |
sex | |
Female | 58 (62) |
Male | 36 (38) |
Or all.stats=T
for both
rm_covsum(data=pembrolizumab,
covs=c('age','sex'),all.stats = TRUE)
n=94 | |
---|---|
age | |
Mean (sd) | 57.9 (12.8) |
Median (Q1,Q3) | 59.1 (49.5, 68.7) |
Range (min, max) | (21.1, 81.8) |
sex | |
Female | 58 (62) |
Male | 36 (38) |