| drmeta | R Documentation |
Fit a design-indexed meta-analytic location-scale model
drmeta(
yi,
vi,
dr,
mods = NULL,
method = c("REML", "ML"),
constrained = TRUE,
gamma_max = 8,
gamma_fixed = NULL,
control = list(),
.quiet = FALSE
)
yi |
Numeric vector of study effect estimates. |
vi |
Numeric vector of sampling variances. |
dr |
Numeric design-robustness index in |
mods |
Optional numeric vector or matrix of location moderators. An intercept is added automatically. |
method |
Either "REML" or "ML". |
constrained |
If TRUE, impose gamma >= 0. If FALSE, allow either sign. |
gamma_max |
Finite optimization bound for abs(gamma). The default, 8, matches the range used in the simulation study reported in the accompanying manuscript. Refit under a wider bound whenever the estimate piles up near it. |
gamma_fixed |
Optional fixed value for gamma, used for null fitting. |
control |
Optional list passed to optim(). |
.quiet |
If TRUE, suppress the design-diagnostic warnings about the
distribution of |
An object of class drmeta: a list whose components include
beta (location coefficients), vcov, ci_beta,
tau0sq, gamma, tau2i, sigma2,
weights, residuals, logLik, method,
constrained, convergence, and the supplied data.
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"]])
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.