a.tes {compute.es}R Documentation

t-test Value from ANCOVA to Effect Size

Description

Converts a t-test value from ANCOVA to an effect size of dd (mean difference), gg (unbiased estimate of dd), rr (correlation coefficient), zz' (Fisher's zz), and log odds ratio. The variances, confidence intervals and p-values of these estimates are also computed, along with NNT (number needed to treat), U3 (Cohen's U(3)U_(3) overlapping proportions of distributions), CLES (Common Language Effect Size) and Cliff's Delta.

Usage

a.tes(t, n.1, n.2, R, q, 
      level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)

Arguments

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 95%.

cer

Control group Event Rate (e.g., proportion of cases showing recovery). Default is 0.2 (=20% of cases showing recovery). CER is used exclusively for NNT output. This argument can be ignored if input is not a mean difference effect size. Note: NNT output (described below) will NOT be meaningful if based on anything other than input from mean difference effect sizes (i.e., input of Cohen's d, Hedges' g will produce meaningful output, while correlation coefficient input will NOT produce meaningful NNT output).

dig

Number of digits to display. Default is 2 digits.

verbose

Print output from scalar values? If yes, then verbose=TRUE; otherwise, verbose=FALSE. Default is TRUE.

id

Study identifier. Default is NULL, assuming a scalar is used as input. If input is a vector dataset (i.e., data.frame, with multiple values to be computed), enter the name of the study identifier here.

data

name of data.frame. Default is NULL, assuming a scalar is used as input. If input is a vector dataset (i.e., data.frame, with multiple values to be computed), enter the name of the data.frame here.

Value

d

Standardized mean difference (dd).

var.d

Variance of dd.

l.d

lower confidence limits for dd.

u.d

upper confidence limits for dd.

U3.d

Cohen's U(3)U_(3), for dd.

cl.d

Common Language Effect Size for dd.

cliffs.d

Cliff's Delta for dd.

p.d

p-value for dd.

g

Unbiased estimate of dd.

var.g

Variance of gg.

l.g

lower confidence limits for gg.

u.g

upper confidence limits for gg.

U3.g

Cohen's U(3)U_(3), for gg.

cl.g

Common Language Effect Size for gg.

p.g

p-value for gg.

r

Correlation coefficient.

var.r

Variance of rr.

l.r

lower confidence limits for rr.

u.r

upper confidence limits for rr.

p.r

p-value for rr.

z

Fisher's z (zz').

var.z

Variance of zz'.

l.z

lower confidence limits for zz'.

u.z

upper confidence limits for zz'.

p.z

p-value for zz'.

OR

Odds ratio.

l.or

lower confidence limits for OROR.

u.or

upper confidence limits for OROR.

p.or

p-value for OROR.

lOR

Log odds ratio.

var.lor

Variance of log odds ratio.

l.lor

lower confidence limits for lORlOR.

u.lor

upper confidence limits for lORlOR.

p.lor

p-value for lORlOR.

N.total

Total sample size.

NNT

Number needed to treat.

Note

Detailed information regarding output values of:

(1) Cohen's dd, Hedges' gg (unbiased estimate of dd) and variance

(2) Correlation coefficient (rr), Fisher's zz', 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 dd is calculated from the ANCOVA tt with independent groups

d=tn1+n2n1n21R2d=% t\sqrt{\frac{n_{1}+n_{2}}% {n_{1}n_{2}}}% \sqrt{1-R^2}

where RR is the correlation between the outcome and covariate.

The variance of dd is derived from

vd=(n1+n2)(1R2)n1n2+d22(n1+n2)v_{d}=% \frac{(n_{1}+n_{2})(1-R^2)}% {n_{1}n_{2}}+% \frac{d^2}% {2(n_{1}+n_{2})}

The effect size estimate dd 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' gg. The correction factor, jj, is defined as

J=134df1J=% 1-% \frac{3}% {4df-1}

where dfdf= degrees of freedom, which is n1+n22n_{1}+n_{2}-2 for two independent groups. Then, to calculate gg

g=Jdg=% Jd

and the variance of gg

vg=J2vdv_{g}=% J^2v_{d}

Correlation Coefficient r, Fisher's z, and Variances:

In this particular formula rr is calculated as follows

r=dd2+ar=% \frac{d}% {\sqrt{d^2+a}}

where aa corrects for inbalance in n1n_{1} & n2n_{2} and is defined as

a=(n1+n2)2n1n2a=% \frac{(n_{1}+n_{2})^2}% {n_{1}n_{2}}

The variance of rr is then defined as

vr=a2vd(d2+a)3v_{r}=% \frac{a^2v_{d}}% {(d^2+a)^3}

Often researchers are interested in transforming rr to zz' (Fisher's zz) because rr is not normally distributed, particularly at large values of rr. Therefore, converting to zz' will help to normally distribute the estimate. Converting from rr to zz' is defined as

z=.5log(1+r1r)z=% .5^*log(\frac{1+r}% {1-r})

and the variance of zz

vz=1n3v_{z}=% \frac{1}% {n-3}

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

Log Odds Ratio & Variance of Log Odds:

In this particular formula, log odds is calculated as follows

log(o)=πd3\log(o)=% \frac{\pi d}% {\sqrt{3}}

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

vlog(o)=π2vd3v_{log(o)}=% \frac{\pi^2v_{d}}% {3}

General information about NNT, U3, Common Language Effect Size, and Cliff's Delta:

Number needed to treat (NNT). NNT is interpreted as the number of participants that would need to be treated in one group (e.g., intervention group) in order to have one additional positive outcome over that of the outcome of a randomly selected participant in the other group (e.g., control group). In the compute.es package, NNT is calculated directly from d (Furukawa & Leucht, 2011), assuming relative normality of distribution and equal variances across groups, as follows:

NNT=1Φ(dΨ(CER))CERNNT=% \frac{1}% {\Phi{(d-\Psi{(CER}))}-CER}

U3. Cohen (1988) proposed a method for characterizing effect sizes by expressing them in terms of (normal) distribution overlap, called U3. This statistic describes the percentage of scores in one group that are exceeded by the mean score in another group. If the population means are equal then half of the scores in the treatment group exceed half the scores in the comparison group, and U3 = 50%. As the population mean difference increases, U3 approaches 100% (Valentine & Cooper, 2003).

Common Language Effect Size (CLES). CLES (McGraw & Wong, 1992) expresses the probability that a randomly selected score from one population will be greater than a randomly sampled score from another population. CLES is computed as the percentage of the normal curve that falls between negative infinity and the effect size (Valentine & Cooper, 2003).

Cliff's Delta/success rate difference. Cliff's delta (or success rate difference; Furukawa & Leucht (2011)) is a robust alternative to Cohen's d, when data are either non-normal or ordinal (with truncated/reduced variance). Cliff's Delta is a non-parametric procedure that provides the probability that individual observations in one group are likely to be greater than the observations in another group. It is the probability that a randomly selected participant of one population has a better outcome than a randomly selected participant of the second population (minus the reverse probability). Cliff's Delta of negative 1 or positive 1 indicates no overlap between the two groups, whereas a value of 0 indicates complete overlap and equal group distributions.

δ=2Φ(d2)1\delta=% 2 * \Phi(\frac{d}% {\sqrt{2}})-1

Author(s)

AC Del Re

Much appreciation to Dr. Jeffrey C. Valentine for his contributions in implementing U3U3 and CLESCLES procedures and related documentation.

Maintainer: AC Del Re acdelre@gmail.com

References

Borenstein (2009). Effect sizes for continuous data. In H. Cooper, L. V. Hedges, & J. C. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation.

Cohen, J. (1988). Statistical power for the behavioral sciences (2nd ed.). Hillsdale, NJ: Erlbaum.

Furukawa, T. A., & Leucht, S. (2011). How to obtain NNT from Cohen's d: comparison of two methods. PloS one, 6(4), e19070.

McGraw, K. O. & Wong, S. P. (1992). A common language effect size statistic. Psychological Bulletin, 111, 361-365.

Valentine, J. C. & Cooper, H. (2003). Effect size substantive interpretation guidelines: Issues in the interpretation of effect sizes. Washington, DC: What Works Clearinghouse.

See Also

tes

Examples

 
# CALCULATE SEVERAL EFFECT SIZES BASED ON T STATISTIC (FROM ANCOVA): 

a.tes(3, 30, 30, .3, 2)

[Package compute.es version 0.2-5 Index]