Description Usage Arguments Value Note Author(s) References See Also Examples

One or two tailed p-value from independent groups to an effect size of *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.

1 2 |

`p` |
p-value. |

`n.1` |
Sample size of treatment group. |

`n.2` |
Sample size of comparison group. |

`tail` |
One or two-tailed p-value. The argument is scalar only–it can only take on a single value of 'one' or 'two'. Default is |

`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 |

`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. |

**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**:

This function will initially calculate Cohen's *d*, from a one or two-tailed p-value, and then all other effect size estimates are derived from *d* and its variance. This parameter estimate is calculated from a one-tailed *p* by

*
d=
t^(-1)(p)(n_(1)+n_(2))/
(n_(1)+n_(2))*

where *t^(-1)* is the inverse of t-distribution with *n-1* degrees of freedom and *p* is the one-tailed p-value.
The two-tailed parameter estimate is calculated from

*
d=
t^(-1)((p)/
(2))(n_(1)+n_(2))/
(n_(1)+n_(2))*

*p* is the two-tailed p-value.

The variance of *d* from either a one or two-tailed p-value is defined as

*
v_(d)=
(n_(1)+n_(2))/
(n_(1)n_(2))+
(d^2)/
(2(n_(1)+n_(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-
(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=
(d)/
(sqrt(d^2+a))*

where *a* corrects for inbalance in *n_(1)* & *n_(2)* and is defined as

*
a=
((n_(1)+n_(2))^2)/
(n_(1)n_(2))*

The variance of *r* is then defined as

*
v_(r)=
(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((1+r)/
(1-r)*

and the variance of *z*

*
v_(z)=
(1)/
(n-3)*

where *n* is the total sample size for groups 1 and 2.

**Log Odds Ratio & Variance of Log Odds**:

In this particular formula, log odds is calculated as follows

*
log(o)=
(pi d)/
(sqrt(3)*

where *pi* = 3.1459. The variance of log odds is defined as

*
v_(log(o))=
(pi^2v_(d))/
(3)*

**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=
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.

*
Cliff's Delta=
2*Phi(d/sqrt(2))-1
*

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

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.

1 2 3 4 | ```
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE:
pes(.045,30,30)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.