cohens_u3()
, p_superiority()
, and p_overlap()
give only one of the
CLESs.
cles(
x,
y = NULL,
data = NULL,
mu = 0,
ci = 0.95,
alternative = "two.sided",
parametric = TRUE,
verbose = TRUE,
iterations = 200,
...
)common_language(
x,
y = NULL,
data = NULL,
mu = 0,
ci = 0.95,
alternative = "two.sided",
parametric = TRUE,
verbose = TRUE,
iterations = 200,
...
)
cohens_u3(...)
p_superiority(...)
p_overlap(...)
A formula, a numeric vector, or a character name of one in data
.
A numeric vector, a grouping (character / factor) vector, a or a
character name of one in data
. Ignored if x
is a formula.
An optional data frame containing the variables.
a number indicating the true value of the mean (or difference in means if you are performing a two sample test).
Confidence Interval (CI) level
a character string specifying the alternative hypothesis;
Controls the type of CI returned: "two.sided"
(default, two-sided CI),
"greater"
or "less"
(one-sided CI). Partial matching is allowed (e.g.,
"g"
, "l"
, "two"
...). See One-Sided CIs in effectsize_CIs.
Use parametric estimation (see cohens_d()
) or
non-parametric estimation (see rank_biserial()
).
Toggle warnings and messages on or off.
The number of bootstrap replicates for computing confidence
intervals. Only applies when ci
is not NULL
and parametric = FALSE
.
Arguments passed to or from other methods.
A data frame containing the common language effect sizes (and optionally their CIs).
For parametric CLES, the CIs are transformed CIs for Cohen's d
(d_to_cles()
). For non-parametric (parametric = FALSE
) CLES, the CI of
Pr(superiority) is a transformed CI of the rank-biserial correlation
(rb_to_cles()
), while for Cohen's U3 and the Overlap coefficient the
confidence intervals are bootstrapped (requires the boot
package).
These measures of effect size present group differences in probabilistic terms:
Probability of superiority is the probability that, when sampling an observation from each of the groups at random, that the observation from the second group will be larger than the sample from the first group.
Cohen's U3 is the proportion of the second group that is smaller than the median of the first group.
Overlap (OVL) is the proportional overlap between the distributions.
(When parametric = FALSE
, bayestestR::overlap()
is used.)
For unequal group sizes, it is recommended to use the non-parametric based
CLES (parametric = FALSE
).
Cohen, J. (1977). Statistical power analysis for the behavioral sciences. New York: Routledge.
Reiser, B., & Faraggi, D. (1999). Confidence intervals for the overlapping coefficient: the normal equal variance case. Journal of the Royal Statistical Society, 48(3), 413-418.
Ruscio, J. (2008). A probability-based measure of effect size: robustness to base rates and other factors. Psychological methods, 13(1), 19<U+2013>30.
Other effect size indices:
cohens_d()
,
effectsize.BFBayesFactor()
,
eta_squared()
,
phi()
,
rank_biserial()
,
standardize_parameters()
# NOT RUN {
cles(mpg ~ am, data = mtcars)
set.seed(4)
cles(mpg ~ am, data = mtcars, parametric = FALSE)
# }
# NOT RUN {
## Individual CLES
p_superiority(extra ~ group, data = sleep)
cohens_u3(extra ~ group, data = sleep, parametric = FALSE)
p_overlap(extra ~ group, data = sleep)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab