compute.es: Compute Effect Sizes in R

compute.es converts summary statistics commonly reported in primary studies—raw means and standard deviations, t-tests, F-tests, p-values, chi-squared tests, binary proportions, failure counts, ANCOVA statistics, correlations, and log odds ratios—into standardized effect sizes (d, unbiased Hedges’ g, r, Fisher’s z, OR, and lOR), exact sampling variances, confidence intervals, p-values, NNT, Cohen’s U3, CLES, and Cliff’s Delta following Cooper, Hedges, and Valentine (2009).

Quick Example & Direct metafor Handoff

library(compute.es)

# Convert a table of two-group means and SDs into standardized effect sizes:
studies <- data.frame(
  id  = c("Smith 2019", "Lee 2021", "Patel 2023", "Gomez 2025"),
  m1  = c(14.2, 16.0, 12.8, 15.1),
  m2  = c(11.5, 13.1, 11.9, 12.4),
  sd1 = c(3.4, 3.8, 3.1, 3.5),
  sd2 = c(3.6, 3.7, 3.2, 3.3),
  n1  = c(42, 38, 55, 47),
  n2  = c(40, 39, 53, 45)
)

es_tab <- mes(
  m.1 = m1, m.2 = m2, sd.1 = sd1, sd.2 = sd2,
  n.1 = n1, n.2 = n2, id = seq_len(nrow(studies)),
  data = studies, dig = 6
)

# Format directly as an escalc data.frame (yi, vi) for metafor::rma():
esc <- to_escalc(es_tab, measure = "SMD")
# metafor::rma(esc, method = "REML", test = "knha")

Companion Tools & Courses

Citation

Del Re, A. C. (2026). compute.es: Compute Effect Sizes. R package version 0.2-7. https://CRAN.R-project.org/package=compute.es