report icon indicating copy to clipboard operation
report copied to clipboard

How to report the age range [x, y] vs. [x - y]

Open DominiqueMakowski opened this issue 3 years ago • 1 comments

data <- data.frame(
  "Age" = c(22, 23, 54, 21, 8, 42),
  "Sex" = c("Intersex", "F", "M", "M", "NA", NA)
)
report::report_participants(data, age = "Age")
#> [1] "6 participants (Mean age = 28.3, SD = 16.6, range: [8, 54]; Sex: 16.7% females, 33.3% males, 16.7% other, 33.33% missing)"

Created on 2022-10-18 by the reprex package (v2.0.1)

Currently we say Mean age = 28.3, SD = 16.6, range: [8, 54], and the range is reported similarly to CIs (with a comma). But perhaps here it would be better something like: range: [8 - 54] or simply range 8 - 54?

DominiqueMakowski avatar Oct 18 '22 08:10 DominiqueMakowski

If we use a dash, it should be an en dash with no spaces – not a hyphen, to follow typographic conventions

bwiernik avatar Oct 18 '22 11:10 bwiernik