Skip to contents

Compute the standardized mean difference between two groups using the pooled standard deviation.

Usage

cohens_d(x, y)

Arguments

x

Numeric vector for the first group.

y

Numeric vector for the second group.

Value

A single numeric value for the effect size.

Examples

cohens_d(rnorm(20, mean = 5), rnorm(20, mean = 3))
#> [1] 1.677686