Description Usage Arguments Value Note References Examples
Typically, the variance components are assumed constant
across the k
studies in meta-analysis, implying that
the total variance for each effect size is the sum of the
sampling and between-study variance. When scale modeling,
the variance in yi
is now a function of those
moderators, which can be computed with this function
\insertCite@see @williams2021puttingblsmeta.
1 | variance_yi(object, type = "sd", cred = 0.95, summary = TRUE)
|
object |
object of class |
type |
character. Should the variance or standard deviation? The options
are |
cred |
numeric. credible interval (defaults to |
summary |
logical. Should the posterior samples be summarized
(defaults to |
Either a summarized data frame, including the
posterior mean, sd, and credible intervals, or a matrix
of dimensions iter
* chains
by k
.
The sampling variances are assumed to be known.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(psymetadata)
# no scale model
fit <- blsmeta(yi, vi,
es_id = es_id,
mods_scale2 = ~ 1,
data = gnambs2020)
no_scale_mod <- variance_yi(fit)
# scale model
fit <- blsmeta(yi, vi,
es_id = es_id,
mods_scale2 = ~ n,
data = gnambs2020)
scale_mod <- variance_yi(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.