Learn R Programming

clubSandwich (version 0.5.11)

findCluster.rma.mv: Detect cluster structure of an rma.mv object

Description

findCluster.rma.mv returns a vector of ID variables for the highest level of clustering in a fitted rma.mv model.

Usage

findCluster.rma.mv(obj)

Value

A a vector of ID variables for the highest level of clustering in obj.

Arguments

obj

A fitted rma.mv object.

Examples

Run this code

if (requireNamespace("metafor", quietly = TRUE)) {

library(metafor)
data(dat.assink2016, package = "metadat")

mfor_fit <- rma.mv(yi ~ year + deltype, 
                 V = vi, random = ~ 1 | study / esid,
                 data = dat.assink2016)
                 
findCluster.rma.mv(mfor_fit)

}

Run the code above in your browser using DataLab