R/stats.R
cohens_d.Rd
Compute the standardized mean difference between two groups using the pooled standard deviation.
cohens_d(x, y)
Numeric vector for the first group.
Numeric vector for the second group.
A single numeric value for the effect size.
cohens_d(rnorm(20, mean = 5), rnorm(20, mean = 3)) #> [1] 1.677686