The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


tips:i2_multilevel_multivariate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:i2_multilevel_multivariate [2019/05/15 19:06]
Wolfgang Viechtbauer
tips:i2_multilevel_multivariate [2019/05/15 19:10]
Wolfgang Viechtbauer
Line 27: Line 27:
 k <- res$k k <- res$k
 wi <- 1/dat$vi wi <- 1/dat$vi
-s2 <- (k-1) * sum(wi) / (sum(wi)^2 - sum(wi^2)) +vt <- (k-1) * sum(wi) / (sum(wi)^2 - sum(wi^2)) 
-100 * res$tau2 / (res$tau2 + s2)+100 * res$tau2 / (res$tau2 + vt)
 </​code>​ </​code>​
 <code output> <code output>
tips/i2_multilevel_multivariate.txt · Last modified: 2019/05/15 19:10 by Wolfgang Viechtbauer