cohens_d {rMEA} | R Documentation |
Cohen's d A simple function to calculate Cohen's d effect size
Description
Cohen's d A simple function to calculate Cohen's d effect size
Usage
cohens_d(x, y)
Arguments
x , y |
two numeric vectors containing the scores of the two samples |
Examples
# Generates two samples with means distance of 1 sd
x = rnorm(1000, mean = 10, sd = 1.5)
y = rnorm(1000, mean = 11.5, sd = 1.5)
# cohen's d should approximate to 1
cohens_d(x,y)
[Package rMEA version 1.2.2 Index]