| dr_scale_predict | R Documentation |
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.
dr_scale_predict(
object,
dr = seq(min(object$dr), max(object$dr), length.out = 100)
)
object |
A fitted |
dr |
New design-robustness values in |
A data frame with columns dr and tau2, giving the
fitted residual between-study variance at each supplied value.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.