[R-meta] formula for calculating variance

Sicong Liu 64zone @end|ng |rom gm@||@com
Thu Dec 15 20:19:51 CET 2022


Dear Wolfgang,

Thank you so much! My apology for not posting in a new thread and I will do so for future posts! 

Cheers, 
Sicong
------------- 




On 12/15/22, 1:45 PM, "Viechtbauer, Wolfgang (NP)" <wolfgang.viechtbauer using maastrichtuniversity.nl <mailto:wolfgang.viechtbauer using maastrichtuniversity.nl>> wrote:


Dear Sicong,


No, this would not be correct, because that equation for the sampling variance of d assumes that one has means and SDs available for the two groups. The proper way to compute the sampling variance of d when it was obtained by converting the log odds ratio to d involves applying the appropriate transformation to the variance of the log odds ratio. For example, one commonly used method for converting a log odds ratio to d is:


d = sqrt(3) / pi * logOR.


Then the variance of d is given by:


var(d) = 3 / pi^2 * var(logOR),


where var(logOR) is typically estimated as you point out with 1/A + 1/B + 1/C + 1/D.


PS: When posting to this mailing list with a new topic, don't just reply to a previous message and change the subject. The reply message still contains information about the original thread. When you do this, the threading in the archives is messed up. See:


https://stat.ethz.ch/pipermail/r-sig-meta-analysis/2022-December/thread.html <https://stat.ethz.ch/pipermail/r-sig-meta-analysis/2022-December/thread.html>


(your post should be a new thread, not a reply to James' last message).


Best,
Wolfgang


>-----Original Message-----
>From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org <mailto:r-sig-meta-analysis-bounces using r-project.org>] On
>Behalf Of Sicong Liu
>Sent: Thursday, 15 December, 2022 18:06
>Cc: r-sig-meta-analysis using r-project.org <mailto:r-sig-meta-analysis using r-project.org>
>Subject: [R-meta] formula for calculating variance
>
>Dear All,
>
>Hope all of you are doing well.
>
>I have a question regarding the calculation of the effect size variance on
>OddsRatio metric and wish to hear your thoughts:
>
>When computing the effect size variance based on odds ratio using binary data
>(assuming the four cells has observation number A, B, C, D like the example in
>Chapter 5 of Borenstein et al. (2009) book, p. 33), the formula suggested for
>calculating effect size variance is: var = 1/A + 1/B + 1/C + 1/D. My question is
>that if I convert the effect size from logOddsRatio to d, is it appropriate to
>calculate the effect size variance using the converted d in that: var = (n1 +
>n2)/(n1*n2) + d^2/(2*n1 + 2*n2) (Chapter 4, p. 27)? Regardless of the
>appropriateness, could you please explain the main differences between these two
>approaches in calculating effect size variances and how the selection between
>them may affect the modeling?
>
>Thank you very much and stay warm!
>
>Cheers,
>Sicong




More information about the R-sig-meta-analysis mailing list