# load example data:
data("Peto1980")
if (FALSE) {
# compute effect sizes (log odds ratios) from count data:
require("metafor")
peto.es <- escalc(measure="OR",
ai=treat.events, n1i=treat.cases,
ci=control.events, n2i=control.cases,
slab=publication, data=Peto1980)
# perform meta-analysis:
ma01 <- bayesmeta(peto.es)
# show data and results:
forestplot(ma01)
# check out weights:
ma01$weights
ma01$weights.theta
# illustrate weights:
weightsplot(ma01)
weightsplot(ma01, ordered=FALSE)
weightsplot(ma01, ordered=FALSE, individual="BrMedJ1974")
}
Run the code above in your browser using DataLab