Calculate Cohens'd from different statistics (see Details).
cohens_d_(
m1 = NULL,
m2 = NULL,
sd1 = NULL,
sd2 = NULL,
n1 = NULL,
n2 = NULL,
t = NULL,
n = NULL,
paired = FALSE,
corr = c("none", "hedges_g", "glass_delta")
)
Numeric, mean of the first group
Numeric, mean of the second group
Numeric, standard deviation of the first group
Numeric, standard deviation of the second group
Numeric, size of the first group
Numeric, size of the second group
Numeric, t-test statistic
Numeric, total sample size
Logical indicating whether to calculate Cohen's for independent
samples or one sample (FALSE
, default) or for dependent
samples (TRUE
).
Character specifying the correction applied to calculation of the
effect size: "none"
(default) returns Cohen's d,
"hedges_g"
applies Hedges correction and "glass_delta"
calculates Glass' \(\Delta\) (uses the standard deviation of the second
group).
The following combinations of statistics are possible:
m1
, m2
, sd1
, sd2
, n1
and
n2
t
, n1
and n2
t
and n
Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: a practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, 863. doi:10.3389/fpsyg.2013.00863