failes {compute.es} | R Documentation |
Failure groups to Effect Size
Description
Converts binary data, that only reported the number of 'failures' in a group, to d
(mean difference), g
(unbiased estimate of d
), r
(correlation coefficient), z'
(Fisher's z
), and log odds ratio. The variances, confidence intervals and p-values of these estimates are also computed, along with NNT (number needed to treat), U3 (Cohen's U_(3)
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
Usage
failes(B, D, n.1, n.0, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
Arguments
B |
Treatment failure. |
D |
Non-treatment failure. |
n.1 |
Treatment sample size. |
n.0 |
Control/comparison sample size. |
level |
Confidence level. Default is |
cer |
Control group Event Rate (e.g., proportion of cases showing recovery). Default is |
dig |
Number of digits to display. Default is |
verbose |
Print output from scalar values? If yes, then verbose=TRUE; otherwise, verbose=FALSE. Default is TRUE. |
id |
Study identifier. Default is |
data |
name of |
Details
This formula will first compute an odds ratio and then a log odds and its variance. From there, Cohen's d
is computed and the remaining effect size estimates are then derived from d
. Computing the odds ratio involves
or=%
\frac{p_{1}(1-p_{2})}%
{p_{2}(1-p_{1})}
The conversion to a log odds and its variance is defined as
ln(o)=%
log(or)
v_{ln(o)}=%
\frac{1}%
{A}+%
\frac{1}%
{B}+%
\frac{1}%
{C}+%
\frac{1}%
{D}
Value
d |
Standardized mean difference ( |
var.d |
Variance of |
l.d |
lower confidence limits for |
u.d |
upper confidence limits for |
U3.d |
Cohen's |
cl.d |
Common Language Effect Size for |
cliffs.d |
Cliff's Delta for |
p.d |
p-value for |
g |
Unbiased estimate of |
var.g |
Variance of |
l.g |
lower confidence limits for |
u.g |
upper confidence limits for |
U3.g |
Cohen's |
cl.g |
Common Language Effect Size for |
p.g |
p-value for |
r |
Correlation coefficient. |
var.r |
Variance of |
l.r |
lower confidence limits for |
u.r |
upper confidence limits for |
p.r |
p-value for |
z |
Fisher's z ( |
var.z |
Variance of |
l.z |
lower confidence limits for |
u.z |
upper confidence limits for |
p.z |
p-value for |
OR |
Odds ratio. |
l.or |
lower confidence limits for |
u.or |
upper confidence limits for |
p.or |
p-value for |
lOR |
Log odds ratio. |
var.lor |
Variance of log odds ratio. |
l.lor |
lower confidence limits for |
u.lor |
upper confidence limits for |
p.lor |
p-value for |
N.total |
Total sample size. |
NNT |
Number needed to treat. |
Note
Detailed information regarding output values of:
(1) Cohen's d
, Hedges' g
(unbiased estimate of d
) and variance
(2) Correlation coefficient (r
), Fisher's z'
, and variance
(3) Log odds and variance
is provided below (followed by general information about NNT, U3, Common Language Effect Size, and Cliff's Delta):
Cohen's d, Hedges' g and Variance of g:
In this particular formula Cohen's d
is calculated after r
is computed and is also derived from it
d=%
\frac{ln(o)\sqrt{3}}%
{\pi}
The variance of d
is derived from
v_{d}=%
\frac{3v_{ln(o)}}%
{\pi^2}
The effect size estimate d
has a small upward bias (overestimates the population parameter effect size) which can be removed using a correction formula to derive the unbiased estimate of Hedges' g
. The correction factor, j
, is defined as
J=%
1-%
\frac{3}%
{4df-1}
where df
= degrees of freedom, which is n_{1}+n_{2}-2
for two independent groups. Then, to calculate g
g=%
Jd
and the variance of g
v_{g}=%
J^2v_{d}
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula r
is calculated as follows
r=%
\frac{d}%
{\sqrt{d^2+a}}
where a
corrects for inbalance in n_{1}
& n_{2}
and is defined as
a=%
\frac{(n_{1}+n_{2})^2}%
{n_{1}n_{2}}
The variance of r
is then defined as
v_{r}=%
\frac{a^2v_{d}}%
{(d^2+a)^3}
Often researchers are interested in transforming r
to z'
(Fisher's z
) because r
is not normally distributed, particularly at large values of r
. Therefore, converting to z'
will help to normally distribute the estimate. Converting from r
to z'
is defined as
z=%
.5^*log(\frac{1+r}%
{1-r})
and the variance of z
v_{z}=%
\frac{1}%
{n-3}
where n
is the total sample size for groups 1 and 2.
General information about NNT, U3, Common Language Effect Size, and Cliff's Delta:
Number needed to treat (NNT). NNT is interpreted as the number of participants that would need to be treated in one group (e.g., intervention group) in order to have one additional positive outcome over that of the outcome of a randomly selected participant in the other group (e.g., control group). In the compute.es
package, NNT is calculated directly from d (Furukawa & Leucht, 2011), assuming relative normality of distribution and equal variances across groups, as follows:
NNT=%
\frac{1}%
{\Phi{(d-\Psi{(CER}))}-CER}
U3. Cohen (1988) proposed a method for characterizing effect sizes by expressing them in terms of (normal) distribution overlap, called U3. This statistic describes the percentage of scores in one group that are exceeded by the mean score in another group. If the population means are equal then half of the scores in the treatment group exceed half the scores in the comparison group, and U3 = 50%. As the population mean difference increases, U3 approaches 100% (Valentine & Cooper, 2003).
Common Language Effect Size (CLES). CLES (McGraw & Wong, 1992) expresses the probability that a randomly selected score from one population will be greater than a randomly sampled score from another population. CLES is computed as the percentage of the normal curve that falls between negative infinity and the effect size (Valentine & Cooper, 2003).
Cliff's Delta/success rate difference. Cliff's delta (or success rate difference; Furukawa & Leucht (2011)) is a robust alternative to Cohen's d, when data are either non-normal or ordinal (with truncated/reduced variance). Cliff's Delta is a non-parametric procedure that provides the probability that individual observations in one group are likely to be greater than the observations in another group. It is the probability that a randomly selected participant of one population has a better outcome than a randomly selected participant of the second population (minus the reverse probability). Cliff's Delta of negative 1 or positive 1 indicates no overlap between the two groups, whereas a value of 0 indicates complete overlap and equal group distributions.
\delta=%
2 * \Phi(\frac{d}%
{\sqrt{2}})-1
Author(s)
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing U3
and CLES
procedures and related documentation.
Maintainer: AC Del Re acdelre@gmail.com
References
Borenstein (2009). Effect sizes for continuous data. In H. Cooper, L. V. Hedges, & J. C. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation.
Cohen, J. (1988). Statistical power for the behavioral sciences (2nd ed.). Hillsdale, NJ: Erlbaum.
Furukawa, T. A., & Leucht, S. (2011). How to obtain NNT from Cohen's d: comparison of two methods. PloS one, 6(4), e19070.
McGraw, K. O. & Wong, S. P. (1992). A common language effect size statistic. Psychological Bulletin, 111, 361-365.
Valentine, J. C. & Cooper, H. (2003). Effect size substantive interpretation guidelines: Issues in the interpretation of effect sizes. Washington, DC: What Works Clearinghouse.
See Also
Examples
# CALCULATE SEVERAL EFFECT SIZES BASED ON NUMBER OF 'FAILURES' IN GROUP:
failes(5, 10, 30, 30)