estimate_tau2 | R Documentation |
estimate_tau2
estimates the between-study heterogeneity
\tau^{2}
using an additive model. The resulting parameter
\tau^2
is estimated through a call to
metagen
with TE = estimates
and
seTE = SEs
. Other arguments to metagen
can be
passed via the ...
argument. If no arguments are passed via
...
, the following defaults are applied.
sm
= "md"
method.tau
= "REML"
control
= list(maxiter = 1e5, stepadj = 0.25)
However, each of these defaults can be overwritten via ...
.
estimate_phi
estimates the the between-study heterogeneity
\phi
using a multiplicative model. The function is a
modified version of Page 3 of:
Accounting for heterogeneity in meta-analysis using a
multiplicative model - an empirical study,
Mawdsley D. etal. 2016. DOI: 10.1002/jrsm.1216
estimate_tau2(estimates, SEs, ...)
estimate_phi(estimates, SEs)
estimates |
Numeric vector of effect estimates. |
SEs |
Numeric vector containing the standard errors of the effect estimates. |
... |
Further arguments that are passed to |
For estimate_tau2
: the estimated heterogeneity parameter
\tau^2
, a numeric
vector of length 1.
For estimate_phi
: the estimated heterogeneity parameter
\phi
, a numeric
vector of length 1.
# Example estimates and std. errors
estimates <- c(0.21, 0.53, 0.24, 0.32, 0.19)
SEs <- c(0.19, 0.39, 0.7, 1, 0.97)
# Estimating heterogeneity using the multiplicative model
estimate_tau2(estimates = estimates, SEs = SEs)
# Estimating heterogeneity using the multiplicative model
estimate_phi(estimates = estimates, SEs = SEs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.