Effect size for differences
Compute effect size indices for standardized differences: Cohen's d,
Hedges' g and Glass’s delta. (This function returns the population
estimate.)
Both Cohen's d and Hedges' g are the estimated the standardized
difference between the means of two populations. Hedges' g provides a bias
correction to Cohen's d for small sample sizes. For sample sizes > 20, the
results for both statistics are roughly equivalent. Glass’s delta is
appropriate when the standard deviations are significantly different between
the populations, as it uses only the second group's standard deviation.
cohens_d( x, y = NULL, data = NULL, pooled_sd = TRUE, mu = 0, paired = FALSE, ci = 0.95, verbose = TRUE, ..., correction ) hedges_g( x, y = NULL, data = NULL, correction = 1, pooled_sd = TRUE, mu = 0, paired = FALSE, ci = 0.95, verbose = TRUE, ... ) glass_delta( x, y = NULL, data = NULL, mu = 0, ci = 0.95, iterations = 200, verbose = TRUE, ..., correction )
x |
A formula, a numeric vector, or a character name of one in |
y |
A numeric vector, a grouping (character / factor) vector, a or a
character name of one in |
data |
An optional data frame containing the variables. |
pooled_sd |
If |
mu |
a number indicating the true value of the mean (or difference in means if you are performing a two sample test). |
paired |
If |
ci |
Confidence Interval (CI) level |
verbose |
Toggle warnings and messages on or off. |
... |
Arguments passed to or from other methods. |
correction |
Type of small sample bias correction to apply to produce
Hedges' g. Can be |
iterations |
The number of bootstrap replicates for computing confidence intervals. Only applies when |
Confidence Intervals for Glass' delta are estimated using the bootstrap method.
A data frame with the effect size ( Cohens_d
, Hedges_g
,
Glass_delta
) and their CIs (CI_low
and CI_high
).
Unless stated otherwise, confidence intervals are estimated using the
Noncentrality parameter method; These methods searches for a the best
non-central parameters (ncp
s) of the noncentral t-, F- or Chi-squared
distribution for the desired tail-probabilities, and then convert these
ncp
s to the corresponding effect sizes. (See full effectsize-CIs for
more.)
The indices here give the population estimated standardized difference. Some statistical packages give the sample estimate instead (without applying Bessel's correction).
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd Ed.). New York: Routledge.
Hedges, L. V. & Olkin, I. (1985). Statistical methods for meta-analysis. Orlando, FL: Academic Press.
Hunter, J. E., & Schmidt, F. L. (2004). Methods of meta-analysis: Correcting error and bias in research findings. Sage.
McGrath, R. E., & Meyer, G. J. (2006). When effect sizes disagree: the case of r and d. Psychological methods, 11(4), 386.
Other effect size indices:
effectsize()
,
eta_squared()
,
phi()
,
rank_biserial()
,
standardize_parameters()
# two-sample tests ----------------------- # using formula interface cohens_d(mpg ~ am, data = mtcars) cohens_d(mpg ~ am, data = mtcars, pooled_sd = FALSE) cohens_d(mpg ~ am, data = mtcars, mu = -5) hedges_g(mpg ~ am, data = mtcars) if (require(boot)) glass_delta(mpg ~ am, data = mtcars) print(cohens_d(mpg ~ am, data = mtcars), append_CL = TRUE) # other acceptable ways to specify arguments cohens_d(sleep$extra, sleep$group) hedges_g("extra", "group", data = sleep) cohens_d(sleep$extra[sleep$group == 1], sleep$extra[sleep$group == 2], paired = TRUE) # one-sample tests ----------------------- cohens_d("wt", data = mtcars, mu = 3) hedges_g("wt", data = mtcars, mu = 3) # interpretation ----------------------- interpret_d(0.4, rules = "cohen1988") d_to_common_language(0.4) interpret_g(0.4, rules = "sawilowsky2009") interpret_delta(0.4, rules = "gignac2016")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.