Skip to content
Prev 4966 / 5636 Next

[R-meta] Correcting Hedges' g vs. Log response ratio in nested studies

Correction: I think "m" has to be the same for all rows from a clustered
study.

Is the following correct?

dat <- read.table(header=TRUE,text="
study  gi   vi  cluster n1  n2   m
1     .2   .05  T       25  23   2
1     .3   .08  T       18  11   2
2     1    .1   F       19  21   1
2     2    .2   F       12  36   1")

g_cluster <- \(gi, n_bar, N, icc=.15) { gi*sqrt(1 - (2 * (n_bar - 1) * icc
/ (N - 2))) }

dat %>%
  group_by(study) %>%
  mutate(N = sum(c(n1,n2)), n_bar=N/m,
         gi= ifelse(cluster, g_cluster(gi, n_bar, N), gi))
On Fri, Nov 3, 2023 at 7:37?AM Yuhang Hu <yh342 at nau.edu> wrote: