dr_scale_predict: Predict the fitted between-study variance

View source: R/diagnostics.R

dr_scale_predictR Documentation

Predict the fitted between-study variance

Description

Evaluates the fitted variance function \tau^2(d) = \tau_0^2 \exp(-\gamma d) over a grid of design-robustness values. The default grid spans the observed range of the design index rather than the full interval [0, 1], because values outside the observed support are extrapolations of the fitted scale model.

Usage

dr_scale_predict(
  object,
  dr = seq(min(object$dr), max(object$dr), length.out = 100)
)

Arguments

object

A fitted drmeta object.

dr

New design-robustness values in [0, 1]. Defaults to a grid spanning the observed range.

Value

A data frame with columns dr and tau2, giving the fitted residual between-study variance at each supplied value.

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"]])
head(dr_scale_predict(fit))

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