dr_heterogeneity: Classical heterogeneity diagnostics and design-indexed...

View source: R/diagnostics.R

dr_heterogeneityR Documentation

Classical heterogeneity diagnostics and design-indexed summaries

Description

Reports the classical fixed-effect residual Q statistic and I^2 alongside the fitted design-indexed scale parameters. Unlike version 0.1.0, this function does not return a design-explained variance decomposition; that quantity was not identified by the model and has been replaced by dr_scale_attenuation.

Usage

dr_heterogeneity(object)

Arguments

object

A fitted drmeta object.

Value

A list with components Q, df, p, I2, tau0sq, gamma, attenuation_observed, and tau2_by_study.

Examples

path <- system.file("extdata", "bcg_design_robustness.csv", package = "drmeta")
bcg <- utils::read.csv(path)
fit <- drmeta(yi = bcg[["yi"]], vi = bcg[["vi"]], dr = bcg[["dr"]])
dr_heterogeneity(fit)

drmeta documentation built on Aug. 25, 2026, 1:08 a.m.