Title: | Compute Effect Sizes |
---|---|
Description: | Several functions are available for calculating the most widely used effect sizes (ES), along with their variances, confidence intervals and p-values. The output includes ES's of d (mean difference), g (unbiased estimate of d), r (correlation coefficient), z' (Fisher's z), and OR (odds ratio and log odds ratio). In addition, NNT (number needed to treat), U3, CLES (Common Language Effect Size) and Cliff's Delta are computed. This package uses recommended formulas as described in The Handbook of Research Synthesis and Meta-Analysis (Cooper, Hedges, & Valentine, 2009). |
Authors: | AC Del Re |
Maintainer: | AC Del Re <[email protected]> |
License: | GPL-2 |
Version: | 0.2-5 |
Built: | 2024-11-14 06:36:13 UTC |
Source: | CRAN |
This package provides a comprehensive set of tools/functions to easily derive and/or convert statistics generated from one's study (or from those reported in a published study) to all of the common effect size estimates, along with their variances, confidence intervals, and p-values. Several additional statistics are generated, including NNT (number needed to treat), U3 (Cohen's U3 distribution overlap statistic), CLES (Common Language Effect Size) and Cliff's Delta (success rate difference). The compute.es
package's functions will convert a variety of statistics, such as means and standard deviations, t-test or p-value and sample size, to estimates of:
(1) Cohen's (mean difference) |
(2) Hedges' (unbiased estimate of ) |
(3) (correlation coefficient) |
(4) (Fisher's ) |
(5) log odds ratio |
(6) the variances, confidence intervals and p-values of the above estimates |
(7) Other statistics: NNT, U3, CLES, Cliff's Delta |
The functions in this package can compute the effect sizes from a single study or from multiple studies simultaneously. The compute.es
package uses recommended conversion formulas as described in The Handbook of Research Synthesis and Meta-Analysis (Cooper, Hedges, & Valentine, 2009).
Package: | compute.es |
Type: | Package |
Version: | 0.2-4 |
Date: | 2014-09-16 |
License: | GPL-2 |
LazyLoad: | yes |
Structure of Functions
The function names for this package are designed for quick processing, such that the first part of the function corresponds to the input method (statistical information reported in the study) and the remaining part corresponds to the output values, which are the effect size estimates ('es' at the end of each function). For example, the function des()
has the input of a Cohen's and will output various effect size ('es') estimates.
The other function inputs and names are as follows:
ANCOVA F-test: | a.fes() |
ANCOVA means: | a.mes() |
ANCOVA means (pooled ): |
a.mes2() |
ANCOVA p-value: | a.pes() |
ANCOVA t-test: | a.tes() |
Chi-squared (1 ): |
chies() |
Correlation: | res() |
d-statistic: | des() |
Failure group (binary): | failes() |
F-test: | fes() |
Log odds ratio: | lores() |
Means: | mes() |
Means (pooled ): |
mes2() |
Proportions (binary): | propes() |
p-value: | pes() |
t-test: | tes() |
AC Del Re with contributions from Jeffrey C. Valentine
Maintainer: AC Del Re [email protected]
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.
Cooper, H., Hedges, L.V., & Valentine, J.C. (2009). The handbook of research synthesis and meta-analysis (2nd edition). New York: Russell Sage Foundation.
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.
For information and user-friendly R packages to conduct a meta-analysis see:
Menu-Driven Meta-Analysis (Graphical User Interface):
RcmdrPlugin.MA package: https://CRAN.R-project.org/package=RcmdrPlugin.MA
Meta-Analysis with Correlations:
MAc package: https://CRAN.R-project.org/package=MAc
Meta-Analysis with Mean Differences:
MAd package: https://CRAN.R-project.org/package=MAd
## 1. Computations to Calculate Effect Sizes: # For example, suppose the primary study reported a t-test # value for differences between 2 groups. Then, running: tes(t=1.74, n.1=30, n.2=31) # Or, more simply: tes(1.74, 30, 31) # where the reported t-value = 1.74, treatment sample # size = 30, and the control/comparison sample size = 31 will # output effect sizes of d, g, r, z, OR, and log odds ratio. # The variances, confidence intervals, p-values and other # statistics will also be computed. # Note: If only the total sample size is reported simply split # the number in half for entry into the function. # Now suppose one has a dataset (i.e., data.frame in R-speak) # with several t-values to be converted into effect sizes: # First, we will generate sample data: dat <- data.frame(id=1:5,t=rnorm(5, 2, .5), n.t=round(rnorm(5, 25),0), n.c=round(rnorm(5, 25),0)) # Running the fuction as follows will generate a new # data.frame with several effect size estimates tes(t=t, n.1=n.t, n.2=n.c, level=95, dig=2, id=id, data=dat)
## 1. Computations to Calculate Effect Sizes: # For example, suppose the primary study reported a t-test # value for differences between 2 groups. Then, running: tes(t=1.74, n.1=30, n.2=31) # Or, more simply: tes(1.74, 30, 31) # where the reported t-value = 1.74, treatment sample # size = 30, and the control/comparison sample size = 31 will # output effect sizes of d, g, r, z, OR, and log odds ratio. # The variances, confidence intervals, p-values and other # statistics will also be computed. # Note: If only the total sample size is reported simply split # the number in half for entry into the function. # Now suppose one has a dataset (i.e., data.frame in R-speak) # with several t-values to be converted into effect sizes: # First, we will generate sample data: dat <- data.frame(id=1:5,t=rnorm(5, 2, .5), n.t=round(rnorm(5, 25),0), n.c=round(rnorm(5, 25),0)) # Running the fuction as follows will generate a new # data.frame with several effect size estimates tes(t=t, n.1=n.t, n.2=n.c, level=95, dig=2, id=id, data=dat)
Converts an ANCOVA to an effect size of
(mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
a.fes(f, n.1, n.2, R, q, level=95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
a.fes(f, n.1, n.2, R, q, level=95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
f |
|
n.1 |
Treatment group sample size. |
n.2 |
Comparison group sample size. |
R |
Covariate outcome correlation or multiple correlation. |
q |
number of covariates. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated from the ANCOVA
with independent groups
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON F-STATISTIC FROM ANCOVA: a.fes(3, 30, 30, .4, 2)
# CALCULATE SEVERAL EFFECT SIZES BASED ON F-STATISTIC FROM ANCOVA: a.fes(3, 30, 30, .4, 2)
Converts an ANCOVA F-statistic to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
a.mes(m.1.adj, m.2.adj, sd.adj, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
a.mes(m.1.adj, m.2.adj, sd.adj, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
m.1.adj |
Adjusted mean of treatment group from ANCOVA. |
m.2.adj |
Adjusted mean of comparison group from ANCOVA. |
sd.adj |
Adjusted standard deviation. |
n.1 |
Treatment group sample size. |
n.2 |
Comparison group sample size. |
R |
Covariate outcome correlation or multiple correlation. |
q |
Number of covariates. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 from the independent groups adjusted mean ANCOVA values. Then, all other effect size estimates are derived from
and its variance. This parameter is calculated by
where and
are the adjusted sample means in each group and
is the 'readjusted' standard deviation defined as
where = adjusted standard deviation and
= correlation between outcome and covariate (or its estimate if none is provided).
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEAN VALUES FROM ANCOVA F-STATISTIC: a.mes(10, 12, 1, 30, 30, .2, 2)
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEAN VALUES FROM ANCOVA F-STATISTIC: a.mes(10, 12, 1, 30, 30, .2, 2)
Converts an ANCOVA F-statistic with a pooled standard deviation to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
a.mes2(m.1.adj, m.2.adj, s.pooled, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
a.mes2(m.1.adj, m.2.adj, s.pooled, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
m.1.adj |
Adjusted mean of treatment group from ANCOVA. |
m.2.adj |
Adjusted mean of comparison group from ANCOVA. |
s.pooled |
Pooled standard deviation. |
n.1 |
Treatment group sample size. |
n.2 |
Comparison group sample size. |
R |
Covariate outcome correlation or multiple correlation. |
q |
Number of covariates |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 from the independent groups adjusted mean ANCOVA values. Then, all other effect size estimates are derived from
and its variance. This parameter is calculated by
where and
are the adjusted sample means in each group and
is the pooled standard deviation for both groups.
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEAN VALUES FROM ANCOVA F-STAT (WITH POOLED SD): a.mes2(10, 12, 1, 30, 30, .2, 2)
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEAN VALUES FROM ANCOVA F-STAT (WITH POOLED SD): a.mes2(10, 12, 1, 30, 30, .2, 2)
Converts a one or two-tailed p-value from ANCOVA to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
a.pes(p, n.1, n.2, R, q, tail = "two", level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
a.pes(p, n.1, n.2, R, q, tail = "two", level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
p |
One- or two-tailed p-value. |
n.1 |
Treatment group sample size. |
n.2 |
Comparison group sample size. |
R |
Covariate outcome correlation or multiple correlation. |
q |
number of covariates. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 from a one or two-tailed p-value from ANCOVA. Then, all other effect size estimates are derived from
and its variance. This parameter estimate is calculated from a one-tailed
by
where is the inverse of t-distribution with
degrees of freedom and
is the one-tailed p-value from ANCOVA.
The two-tailed parameter estimate is calculated from
is the two-tailed p-value.
The variance of from either a one or two-tailed p-value from ANCOVA is defined as
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE FROM ANCOVA STATISTIC: a.pes(.3, 30, 30, .2, 3)
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE FROM ANCOVA STATISTIC: a.pes(.3, 30, 30, .2, 3)
Converts a t-test value from ANCOVA to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
a.tes(t, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
a.tes(t, n.1, n.2, R, q, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
t |
t-test value reported in primary study. |
n.1 |
Treatment group sample size. |
n.2 |
Comparison group sample size. |
R |
Covariate outcome correlation or multiple correlation. |
q |
number of covariates. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated from the ANCOVA
with independent groups
where is the correlation between the outcome and covariate.
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON T STATISTIC (FROM ANCOVA): a.tes(3, 30, 30, .3, 2)
# CALCULATE SEVERAL EFFECT SIZES BASED ON T STATISTIC (FROM ANCOVA): a.tes(3, 30, 30, .3, 2)
Converting Chi-squared () statistic with 1 degree of freedom to to an effect size of
(mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
chies(chi.sq, n, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
chies(chi.sq, n, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
chi.sq |
Chi squared statistic from primary study. |
n |
Sample size in primary study. |
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 |
The chi-squared statistic () is defined as
where is the observed value and
is the expected value. NOTE: This function requires the
value to have been derived with 1 degree of freedom (indicating 2 independent groups are used in the calculation).
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated after
is computed and then derived from it
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is equal to 1 since the
degree of freedom = 1. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where is the chi-squared value with 1 degree of freedom and
is the total sample size.
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON CHI^2 STATISTIC: chies(4, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON CHI^2 STATISTIC: chies(4, 30)
Converts (mean difference) to an effect size of
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
des(d, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
des(d, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
d |
Mean difference statistic ( |
n.1 |
Sample size of group one. |
n.2 |
Sample size of group one. |
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 |
Information regarding input (d):
In a study comparing means from independent groups, the population standardized mean difference is defined as
where is the population mean of the second group,
is the population mean of the first group, and
is the population standard deviation (assuming
=
).
The estimate of from independent groups is defined as
where and
are the sample means in each group and
is the standard deviation pooled across both groups and is defined as
where and
are the sample sizes of group 1 and 2 respectively and
and
are the standard deviations of each group. The variance of
is then defined as
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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):
Hedges' g and Variance of g:
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON d STATISTIC: library(compute.es) args(des) # d STAT TO OTHER ES (INCLUDING HEDGES g) # SCALAR des(d=0.8, n.1=30, n.2=30) ## VECTOR OF d VALUES # SAMPLE DATA dat <- data.frame(id=1:30, d=rnorm(30, 0.8, 0.1), nT=round(rnorm(30, 30, 5), 0), nC=round(rnorm(30, 30, 5), 0) ) des(d=d, n.1=nT, n.2=nC, id=id, data=dat) # TO EXTRACT JUST g AND var(g) des(d=d, n.1=nT, n.2=nC, id=id, data=dat)[,13:14]
# CALCULATE SEVERAL EFFECT SIZES BASED ON d STATISTIC: library(compute.es) args(des) # d STAT TO OTHER ES (INCLUDING HEDGES g) # SCALAR des(d=0.8, n.1=30, n.2=30) ## VECTOR OF d VALUES # SAMPLE DATA dat <- data.frame(id=1:30, d=rnorm(30, 0.8, 0.1), nT=round(rnorm(30, 30, 5), 0), nC=round(rnorm(30, 30, 5), 0) ) des(d=d, n.1=nT, n.2=nC, id=id, data=dat) # TO EXTRACT JUST g AND var(g) des(d=d, n.1=nT, n.2=nC, id=id, data=dat)[,13:14]
Converts binary data, that only reported the number of 'failures' in a group, to (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
failes(B, D, n.1, n.0, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
failes(B, D, n.1, n.0, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
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 |
This formula will first compute an odds ratio and then a log odds and its variance. From there, Cohen's is computed and the remaining effect size estimates are then derived from
. Computing the odds ratio involves
The conversion to a log odds and its variance is defined as
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated after
is computed and is also derived from it
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON NUMBER OF 'FAILURES' IN GROUP: failes(5, 10, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON NUMBER OF 'FAILURES' IN GROUP: failes(5, 10, 30, 30)
Converts F-test value to an effect size of d (mean difference), g (unbiased estimate of d), r (correlation coefficient), (Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
fes(f, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
fes(f, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
f |
F-value reported in primary study. |
n.1 |
Sample size of treatment group. |
n.2 |
Sample size of comparison group. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 , from the F-test values, and then all other effect size estimates are derived from
and its variance. This parameter is calculated by
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON F-STATISTIC: fes(3, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON F-STATISTIC: fes(3, 30, 30)
Converts a log odds ratio to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
lores(lor, var.lor, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
lores(lor, var.lor, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
lor |
Log odds ratio reported in the primary study. |
var.lor |
Variance of the log odds ratio. |
n.1 |
Sample size of treatment group. |
n.2 |
Sample size of comparison group. |
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 |
This formula will first convert a log odds and its variance to Cohen's . This value will then be used to compute the remaining effect size estimates. One method for deriving the odds ratio involves
The conversion to a log odds and its variance is defined as
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated from the log odds as follows
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON LOG ODDS RATIO STATISTIC: lores(2, .3, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON LOG ODDS RATIO STATISTIC: lores(2, .3, 30, 30)
Converts raw mean scores to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
mes(m.1, m.2, sd.1, sd.2, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
mes(m.1, m.2, sd.1, sd.2, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
m.1 |
Mean of group one. |
m.2 |
Mean of group two. |
sd.1 |
Standard deviation of group one. |
sd.2 |
Standard deviation of group two. |
n.1 |
Sample size of group one. |
n.2 |
Sample size of group two. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 , from the raw mean values. Then, all other effect size estimates are derived from
and its variance. This parameter is calculated by
where and
are the adjusted sample means in each group and
is the 'readjusted' standard deviation defined as
where and
= standard deviation of groups one and two.
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON GROUP MEANS: mes(10, 12, 1, 1.3, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON GROUP MEANS: mes(10, 12, 1, 1.3, 30, 30)
Converts raw mean scores (with pooled standard deviation reported) to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
mes2(m.1, m.2, s.pooled, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
mes2(m.1, m.2, s.pooled, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
m.1 |
Mean of group one. |
m.2 |
Mean of group two. |
s.pooled |
Pooled standard deviation. |
n.1 |
Sample size of group one. |
n.2 |
Sample size of group two. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 from the independent groups raw mean values and pooled standard deviation. Then, all other effect size estimates are derived from
and its variance. This parameter is calculated by
where and
are the sample means in each group and
is the pooled standard deviation for both groups.
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEANS (WITH POOLED SD) STATISTIC: mes2(10, 12, 1, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON MEANS (WITH POOLED SD) STATISTIC: mes2(10, 12, 1, 30, 30)
One or two tailed p-value from independent groups to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
pes(p, n.1, n.2, tail = "two", level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
pes(p, n.1, n.2, tail = "two", level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 , from a one or two-tailed p-value, and then all other effect size estimates are derived from
and its variance. This parameter estimate is calculated from a one-tailed
by
where is the inverse of t-distribution with
degrees of freedom and
is the one-tailed p-value.
The two-tailed parameter estimate is calculated from
is the two-tailed p-value.
The variance of from either a one or two-tailed p-value is defined as
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE: pes(.045,30,30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE: pes(.045,30,30)
Converts proportions (typically seen in studies reporting odds ratios) to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
propes(p1, p2, n.ab, n.cd, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
propes(p1, p2, n.ab, n.cd, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
p1 |
Proportion one. |
p2 |
Proportion two. |
n.ab |
Total sample size for group A and B. |
n.cd |
Total sample size for group C and D. |
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 |
This formula will first compute an odds ratio and then transform to log odds and its variance. Then, Cohen's will be calculated and this value will then be used to compute the remaining effect size estimates. The odds ratio is derived as follows
The conversion to a log odds and its variance is defined as
where is the sum of group A and B sample size,
is the sum of group C and D sample size,
is the proportion for group 1 and
is the proportion for group 2.
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated from the log odds as follows
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON PROPORTIONS: propes(.50,.30, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON PROPORTIONS: propes(.50,.30, 30, 30)
Converts correlation (r) to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
res(r, var.r = NULL, n, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
res(r, var.r = NULL, n, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
r |
Correlation coefficient. |
var.r |
Variance of r. If value is not reported then leave it blank and variances will be computed based on sample size. Otherwise, enter this value (e.g., |
n |
Total 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 |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 is calculated after
is computed and then derived from it
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON CORRELATION STATISTIC: res(.3, n=30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON CORRELATION STATISTIC: res(.3, n=30)
Converts a t-test value to an effect size of (mean difference),
(unbiased estimate of
),
(correlation coefficient),
(Fisher's
), 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
overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.
tes(t, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
tes(t, n.1, n.2, level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
t |
t-test value reported in primary study. |
n.1 |
Sample size of treatment group. |
n.2 |
Sample size of comparison group. |
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 , Hedges'
(unbiased estimate of
) and variance
(2) Correlation coefficient (), Fisher's
, 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 from the t-test values. Then, all other effect size estimates are derived from
and its variance. This parameter is calculated by
The variance of is derived from
The effect size estimate 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'
. The correction factor,
, is defined as
where = degrees of freedom, which is
for two independent groups. Then, to calculate
and the variance of
Correlation Coefficient r, Fisher's z, and Variances:
In this particular formula is calculated as follows
where corrects for inbalance in
&
and is defined as
The variance of is then defined as
Often researchers are interested in transforming to
(Fisher's
) because
is not normally distributed, particularly at large values of
. Therefore, converting to
will help to normally distribute the estimate. Converting from
to
is defined as
and the variance of
where 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
where = 3.1459. The variance of log odds is defined as
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:
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.
AC Del Re
Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing and
procedures and related documentation.
Maintainer: AC Del Re [email protected]
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.
# CALCULATE SEVERAL EFFECT SIZES BASED ON T STATISTIC: tes(3, 30, 30)
# CALCULATE SEVERAL EFFECT SIZES BASED ON T STATISTIC: tes(3, 30, 30)