ratio_i2: ratio_i2

View source: R/i2_ml.R

ratio_i2R Documentation

ratio_i2

Description

I2 (I-squared) for mulilevel meta-analytic models based on Nakagawa & Santos (2012). Under multilevel models, we can have a multiple I2 (see also Senior et al. 2016).

Usage

ratio_i2(model)

Arguments

model

Model object of class rma.mv or rma.

Examples

## Not run: 
# English example
data(english)
english <- escalc(measure = "SMD", n1i = NStartControl,
sd1i = SD_C, m1i = MeanC, n2i = NStartExpt,
sd2i = SD_E, m2i = MeanE, var.names=c("SMD","vSMD"),data = english)
english_MA <- rma.mv(yi = SMD, V = vSMD,
random = list( ~ 1 | StudyNo, ~ 1 | EffectID), data = english)
I2_eng_1 <- i2_ml(english_MA, data = english, boot = 1000)
I2_eng_2 <- i2_ml(english_MA, data = english, method = "ratio")

## End(Not run)

daniel1noble/orchaRd documentation built on May 12, 2024, 7:46 a.m.