cohens_d_ {apa} | R Documentation |
Cohen's d
Description
Calculate Cohens'd from different statistics (see Details).
Usage
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")
)
Arguments
m1 |
Numeric, mean of the first group |
m2 |
Numeric, mean of the second group |
sd1 |
Numeric, standard deviation of the first group |
sd2 |
Numeric, standard deviation of the second group |
n1 |
Numeric, size of the first group |
n2 |
Numeric, size of the second group |
t |
Numeric, t-test statistic |
n |
Numeric, total sample size |
paired |
Logical indicating whether to calculate Cohen's for independent
samples or one sample ( |
corr |
Character specifying the correction applied to calculation of the
effect size: |
Details
The following combinations of statistics are possible:
-
m1
,m2
,sd1
,sd2
,n1
andn2
-
t
,n1
andn2
-
t
andn
References
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