50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

lrstat (version 0.2.14)

hedgesg: Hedges' g Effect Size

Description

Obtains Hedges' g estimate and confidence interval of effect size.

Usage

hedgesg(tstat, m, ntilde, cilevel = 0.95)

Value

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.

Arguments

tstat

The value of the t-test statistic for comparing two treatment conditions.

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, i.e., tstat = sqrt(ntilde)*meanDiff/stDev.

cilevel

The confidence interval level. Defaults to 0.95.

Author

Kaifeng Lu, kaifenglu@gmail.com

Details

Hedges' g is an effect size measure commonly used in meta-analysis to quantify the difference between two groups. It's an improvement over Cohen's d, particularly when dealing with small sample sizes.

The formula for Hedges' g is g=c(m)d, where d is Cohen's d effect size estimate, and c(m) is the bias correction factor, d=(μ^1μ^2)/σ^, c(m)=134m1. Since c(m)<1, Cohen's d overestimates the true effect size. δ=(μ1μ2)/σ. Since t=n~d, we have g=c(m)n~t, where t has a noncentral t distribution with m degrees of freedom and noncentrality parameter n~δ.

The asymptotic variance of g can be approximated by Var(g)=1n~+g22m. The confidence interval for δ can be constructed using normal approximation.

For two-sample mean difference with sample size n1 for the treatment group and n2 for the control group, we have n~=n1n2n1+n2 and m=n1+n22 for pooled variance estimate.

References

Larry V. Hedges. Distribution theory for Glass's estimator of effect size and related estimators. Journal of Educational Statistics 1981; 6:107-128.

Examples

Run this code

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