Skip to content
Prev 111 / 5632 Next

[R-meta] Observed effect size using escalc

Forgot the closing parentheses on the equation for the bias correction factor. It should be:

exp(lgamma(mi/2) - log(sqrt(mi/2)) - lgamma((mi-1)/2))

Also, usually the equation is written as:

gamma(mi/2) / (sqrt(mi/2) * gamma((mi-1)/2))

but this can lead to numerical overflow when mi is large. An example:

mi <- 500
gamma(mi/2) / (sqrt(mi/2) * gamma((mi-1)/2))
exp(lgamma(mi/2) - log(sqrt(mi/2)) - lgamma((mi-1)/2))

Often, the following approximation is used:

1 - 3 / (4*mi - 1)

which works very well, even when mi is small.

Best,
Wolfgang

-----Original Message-----
From: Myers, Brett [mailto:brett.myers at vanderbilt.edu] 
Sent: Friday, August 11, 2017 23:52
To: Viechtbauer Wolfgang (SP); r-sig-meta-analysis at r-project.org
Subject: RE: [R-meta] Observed effect size using escalc

Thank you so much for that clarification! I really appreciate it.

Brett