Calculate absolute and percentage weights for meta-analysis

Share:

Description

The weights.meta method returns a data frame containing information on absolute and percentage weights of individual studies contributing to fixed effect and random effects meta-analysis.

Usage

1
2
3
## S3 method for class 'meta'
weights(object, comb.fixed = object$comb.fixed,
        comb.random = object$comb.random, ...)

Arguments

object

An object of class meta.

comb.fixed

A logical indicating whether absolute and percentage weights from the fixed effect model should be calculated.

comb.random

A logical indicating whether absolute and percentage weights from the random effects model should be calculated.

...

Additional arguments (ignored at the moment).

Value

A data frame with the following variables is returned:

Variable Definition Condition
w.fixed absolute weights in fixed effect model (if comb.fixed = TRUE)
p.fixed percentage weights in fixed effect model (if comb.fixed = TRUE)
w.random absolute weights in random effects model (if comb.random = TRUE)
p.random percentage weights in random effects model (if comb.random = TRUE)

Author(s)

Guido Schwarzer sc@imbi.uni-freiburg.de

See Also

metabin, metacont, metagen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
data(Fleiss93cont)
#
# Do meta-analysis (fixed effect and random effects model)
#
meta1 <- metacont(n.e, mean.e, sd.e, n.c, mean.c, sd.c, study,
                  data=Fleiss93cont, sm="SMD")
#
# Print weights for fixed effect and random effects meta-analysis
#
weights(meta1)

#
# Do meta-analysis (only random effects model)
#
meta2 <- update(meta1, comb.fixed = FALSE)
#
# Print weights for random effects meta-analysis
#
weights(meta2)
#
# Print weights for fixed effect and random effects meta-analysis
#
weights(meta2, comb.fixed = TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.