forest.bayesmeta: Generate a forest plot for a 'bayesmeta' object (based on the...

Description Usage Arguments Details Note Author(s) References See Also Examples

View source: R/bayesmeta.R

Description

Generates a forest plot, showing individual estimates along with their 95 percent confidence intervals, resulting effect estimate and prediction interval.

Usage

1
2
  ## S3 method for class 'bayesmeta'
forest(x, xlab="effect size", refline=0, cex=1,...)

Arguments

x

a bayesmeta object.

xlab

title for the x-axis.

refline

value at which a vertical ‘reference’ line should be drawn (default is 0). The line can be suppressed by setting this argument to ‘NA’.

cex

character and symbol expansion factor.

...

other arguments.

Details

Generates a simple forest plot illustrating the underlying data and resulting estimates (effect estimate and prediction interval).

Note

This function requires the metafor package to be installed.

Author(s)

Christian Roever [email protected]

References

C. Lewis and M. Clarke. Forest plots: trying to see the wood and the trees. BMJ, 322:1479, 2001.

R.D. Riley, J.P. Higgins and J.J. Deeks. Interpretation of random effects meta-analyses. BMJ, 342:d549, 2011.

See Also

bayesmeta, forest.default, addpoly, forestplot.bayesmeta

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data("CrinsEtAl2014")

## Not run: 
require("metafor")
es.crins <- escalc(measure="OR",
                   ai=exp.AR.events,  n1i=exp.total,
                   ci=cont.AR.events, n2i=cont.total,
                   slab=publication, data=CrinsEtAl2014)
tp.crins <- TurnerEtAlPrior("surgical", "pharma", "placebo / control")
ma.crins <- bayesmeta(es.crins, tau.prior=tp.crins$dprior)

forest(ma.crins, xlab="log odds ratio")

forest(ma.crins, trans=exp, refline=1, xlab="odds ratio")

## End(Not run)

bayesmeta documentation built on Sept. 8, 2017, 5:04 p.m.