weights.meta: Calculate absolute and percentage weights for meta-analysis

Description Usage Arguments Value Author(s) See Also Examples

View source: R/weights.meta.R

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 [email protected]

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)

Example output

Loading 'meta' package (version 4.8-4).
Type 'help(meta)' for a brief overview.
          w.fixed   p.fixed  w.random  p.random
Davis    6.391219 11.542117  6.391219 11.542117
Florell 18.038014 32.575453 18.038014 32.575453
Gruen   17.293961 31.231745 17.293961 31.231745
Hart     9.978372 18.020277  9.978372 18.020277
Wilson   3.671457  6.630408  3.671457  6.630408
         w.random  p.random
Davis    6.391219 11.542117
Florell 18.038014 32.575453
Gruen   17.293961 31.231745
Hart     9.978372 18.020277
Wilson   3.671457  6.630408
          w.fixed   p.fixed  w.random  p.random
Davis    6.391219 11.542117  6.391219 11.542117
Florell 18.038014 32.575453 18.038014 32.575453
Gruen   17.293961 31.231745 17.293961 31.231745
Hart     9.978372 18.020277  9.978372 18.020277
Wilson   3.671457  6.630408  3.671457  6.630408

meta documentation built on June 8, 2018, 1:06 a.m.