cohens_d | R Documentation |
Cohen's d A simple function to calculate Cohen's d effect size
cohens_d(x, y)
x, y |
two numeric vectors containing the scores of the two samples |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.