Skip to content
Prev 5451 / 5632 Next

[R-meta] Meta-analysis of intra class correlation coefficients

I don't understand what you mean by 'related traits'. Also, if multiple estimates are extracted from the same cohort, you may need to account for this as well. But leaving this aside, you should fit a single bivariate model to the z(rMZ) and z(rDZ) values. Maybe something like this:

model <- rma.mv(
  zi,
  vzi,
  random = list(~ MZDZ_factor | Study_ID, ~ MZDZ_factor | ESID), struct="UN",
  data = data,
  mods = ~ 0 + MZDZ_factor + DZMZ_factor,
  method = "REML",
  tdist = TRUE)

although not sure whether this will converge.

coef(model) then gives you the two coefficients and vcov(model) the corresponding var-cov matrix thereof. The multivariate delta method is described here:

https://en.wikipedia.org/wiki/Delta_method#Multivariate_delta_method

This is implemented, for example in msm::deltamethod(). Double-check this, but:

deltamethod(~ 2*((exp(2*x1) - 1) / (exp(2*x1) + 1) - (exp(2*x2) - 1) / (exp(2*x2) + 1)), coef(model), vcov(model))

should then give you the SE of 2*(rMZ - rDZ).

Best,
Wolfgang