Dear Statalist,
I am using Stata v17.0 on a mac. I have a two independent group design with n1 = 206 and n2 = 276; df = 480.
I am trying to calculate (replicate) Stata's 95%CIs for Hedge's g using the formula provided in the manual for esize. This involves caculating the unbiased estimator as follows:

I can replicate most of the cacluations. However, I have tried multiple times to replicate this unbiased estimator using the lngamma function in Stata. However, I do not come up with a plausable estimator value. Here is one of my attempts:
I get a value of 0.36585431.
I know this to be not plausible because applying Hedge's original approximation:
I get a value of 0.99843669.
When I use this to calculate Hedge's g from Cohen's d, I get a similar result to Stata's esize command but not exact. When I use it to calculate 95%CIs, again I get a similar result but still not exact. I would really appreciate if someone with a more advanced statistical background could help me understand how Stata really calculates this unbiased estimator.
Thanks for your consideration,
Jesse.
I am using Stata v17.0 on a mac. I have a two independent group design with n1 = 206 and n2 = 276; df = 480.
I am trying to calculate (replicate) Stata's 95%CIs for Hedge's g using the formula provided in the manual for esize. This involves caculating the unbiased estimator as follows:
I can replicate most of the cacluations. However, I have tried multiple times to replicate this unbiased estimator using the lngamma function in Stata. However, I do not come up with a plausable estimator value. Here is one of my attempts:
Code:
display (lngamma(480/2))/(ln(sqrt(480/2))*(lngamma(479/2)))
I know this to be not plausible because applying Hedge's original approximation:
Code:
display 1-(3/(4*(206+276)-9))
When I use this to calculate Hedge's g from Cohen's d, I get a similar result to Stata's esize command but not exact. When I use it to calculate 95%CIs, again I get a similar result but still not exact. I would really appreciate if someone with a more advanced statistical background could help me understand how Stata really calculates this unbiased estimator.
Thanks for your consideration,
Jesse.
Comment