Skip to content
Prev 3070 / 5632 Next

[R-meta] Question on combining means with robumeta

Dear Tobias,

I don't understand what you mean by "Since in some cases I had negative values". Negative values where?

This aside, 'var.eff.size' is for the *variances* but SEM is the SE of the means. So it should be:

res <- robu(formula = Mean ~ 1, data = dat,
              studynum = Author, var.eff.size =SEM^2,
              rho = .8, small = TRUE, modelweights="CORR")
res

although the results are basically the same.

Second, LogMean_SEM doesn't seem to be computed correctly in your example and let's not call it SEM since it's a variance:

dat$LogMean_Var <- with(dat, SD^2/(N*Mean^2))

Now:

res1 <- robu(formula = LogMean ~ 1, data = dat,
             studynum = Author, var.eff.size =  LogMean_Var,
             rho = .8, small = TRUE, modelweights="CORR")
res1

#backtransformed results from log scale
round(exp(c(res1$reg_table$b.r[[1]],res1$reg_table$CI.L[[1]],res1$reg_table$CI.U[[1]])),2) 

gives very similar results as 'res' earlier.

Best,
Wolfgang