Description Usage Arguments Details Value Note References Examples
Fit meta-analytic models, including fixed-effects, two-level, and three-level random-effects models. Moderators can be included for both the location and scale parameters. This is accomplished with mixed-effects location-scale modeling \insertCite@see for example @Hedeker2008blsmeta, with the basic idea extended to meta-analysis in \insertCitewilliams2021putting;textualblsmeta.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
yi |
vector with the observed effect sizes (length |
vi |
vector with the sampling variances (length |
sei |
vector with the sampling variances (length |
es_id |
numeric vector with the effect size ids (i.e., |
study_id |
numeric vector with the study ids (length |
mods |
an object of class |
mods_scale2 |
an object of class |
mods_scale3 |
an object of class |
prior |
one or more |
iter |
numeric. The number of posterior samples per chain
(defaults to |
warmup |
numeric. The number of warmup samples, which are discarded
(defaults to |
chains |
numeric. The number of chains (defaults to |
log_linear |
logical. Should the variance components be modeled on
the log-scale (defaults to |
data |
data frame containing the variables in the model. |
"Scale"
The scale corresponds to the variance of a normal distribution. However, in blsmeta it is modeled on the standard deviation scale. As a result, the reported estimates are also on the standard deviation (log) scale. To make sense of the estimates, it is helpful to use the predict function.
log_linear
In the two and three-level models, by default a log-linear model is fitted
to the random-effects variances ("scale"). When no moderators are included in
mods_scale2
and mods_scale3
, this is an intercept only model
(the "scale" is constant across the k
studies).
To use a different prior distribution (as opposed to the default log-normal),
this can be changed by setting log_linear = FALSE
. In this case,
a half Student-t prior is employed which is then similar to the R
package brms. Note that a log-linear model is required when
moderators are included in mods_scale2
and mods_scale3
.
mods_scale3
Moderators for mods_scale3
are inherently level 3 predictors.
This means that the study-level characteristic cannot not vary within study.
For example, with, say, 100 effect sizes from 25 studies, this variance component is
predicted with only the 25 studies. To do so, the first row of every study
is used by default.
An object of class blsmeta
. This is used internally,
and it is not all that useful otherwise.
Three-level meta-analyses are described in \insertCitevan2013three;textualblsmeta, \insertCitecheung2014modeling;textualblsmeta, and \insertCiteassink2016fitting;textualblsmeta.They allow for modeling dependent effect sizes (several from the same study).
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.