Obtains Hedges' g estimate and confidence interval of effect size.
hedgesg(tstat, m, ntilde, cilevel = 0.95)
A data frame with the following variables:
tstat
: The value of the t
test statistic.
m
: The degrees of freedom for the t-test.
ntilde
: The normalizing sample size to convert the
standardized treatment difference to the t-test statistic.
g
: Hedges' g
effect size estimate.
varg
: Variance of g
.
lower
: The lower confidence limit for effect size.
upper
: The upper confidence limit for effect size.
cilevel
: The confidence interval level.
The value of the t-test statistic for comparing two treatment conditions.
The degrees of freedom for the t-test.
The normalizing sample size to convert the
standardized treatment difference to the t-test statistic, i.e.,
tstat = sqrt(ntilde)*meanDiff/stDev
.
The confidence interval level. Defaults to 0.95.
Kaifeng Lu, kaifenglu@gmail.com
Hedges'
The formula for Hedges'
The asymptotic variance of
For two-sample mean difference with sample size
Larry V. Hedges. Distribution theory for Glass's estimator of effect size and related estimators. Journal of Educational Statistics 1981; 6:107-128.
n1 = 7
n2 = 8
meanDiff = 0.444
stDev = 1.201
m = n1+n2-2
ntilde = n1*n2/(n1+n2)
tstat = sqrt(ntilde)*meanDiff/stDev
hedgesg(tstat, m, ntilde)
Run the code above in your browser using DataLab