| dr_plot_vfun | R Documentation |
Draws the fitted residual between-study variance against the design index, with study-level fitted variances overlaid. By default the curve is drawn only over the observed range of the design index, since the fitted function outside that range is an extrapolation.
dr_plot_vfun(
object,
extrapolate = FALSE,
col_curve = "#D6604D",
col_pts = "#2166AC",
xlab = "Design robustness",
ylab = "Fitted tau^2",
main = "Fitted variance function",
...
)
object |
A fitted |
extrapolate |
If TRUE, draw the curve over the whole interval
|
col_curve |
Colour of the fitted curve. |
col_pts |
Colour of the study-level points. |
xlab, ylab, main |
Axis labels and title. |
... |
Further arguments passed to |
Invisibly, the data frame of plotted grid values.
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_plot_vfun(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.