\title{studies on treatments for chronic obstructive pulmonary disease}
\description{results from 3 trials examining the mortality risk of three treatments and placebo in patients with chronic obstructive pulmonary disease.}
\bold{author}    \tab \code{character} \tab first author / study name \cr
\bold{r}         \tab \code{integer}   \tab number of deaths \cr
\bold{n}         \tab \code{integer}   \tab number of patients
count mortality statistics in randomised controlled trials of treatments for chronic obstructive pulmonary disease (woods et al., 2010, table 1).
woods, b. s., hawkins, n., & scott, d. a. (2010). network meta-analysis on the log-hazard scale, combining count and hazard ratio statistics accounting for multi-arm trials: a tutorial. \emph{bmc medical research methodology}, \bold{10}, 54. \verb{https://doi.org/10.1186/1471-2288-10-54}
pw <- pairwise(treatment, event = r, n = n,
studlab = author, data = dat.woods2010, sm = "or")
forest(net, ref = "placebo", drop = true,
medicine, odds ratios, network meta-analysis

\title{studies of beta blockers during and after myocardial infarction}
\description{results from studies examining the effectiveness of beta blockers for reducing mortality and reinfarction. \loadmathjax}
\bold{table}  \tab \code{character} \tab table number \cr
\bold{id}     \tab \code{character} \tab trial id number \cr
\bold{trial}  \tab \code{character} \tab trial name or first author \cr
\bold{ai}     \tab \code{numeric}   \tab number of deaths/reinfarctions in treatment group \cr
\bold{n1i}    \tab \code{numeric}   \tab number of patients in treatment group \cr
\bold{ci}     \tab \code{numeric}   \tab number of deaths/reinfarctions in control group \cr
\bold{n2i}    \tab \code{numeric}   \tab number of patients in control group
the dataset contains table 6 (total mortality from short-term trials of oral beta blockers), 9 (total mortality at one week from trials with an initial iv dose of a beta blocker), 10 (total mortality from long-term trials with treatment starting late and mortality from day 8 onwards in long-term trials that began early and continued after discharge), 11 (nonfatal reinfarction from long-term trials of beta blockers), 12a (sudden death in long-term beta blocker trials), and 12b (nonsudden death in long-term beta blocker trials) from the meta-analysis by yusuf et al. (1985) on the effectiveness of of beta blockers for reducing mortality and reinfarction.
the article also describes what is sometimes called peto's one-step method for meta-analyzing \mjeqn{2 \times 2}{2x2} table data. this method is implemented in the \code{\link[metafor]{rma.peto}} function.
yusuf, s., peto, r., lewis, j., collins, r., & sleight, p. (1985). beta blockade during and after myocardial infarction: an overview of the randomized trials. \emph{progress in cardiovascular disease}, \bold{27}(5), 335--371. \verb{https://doi.org/10.1016/s0033-0620(85)80003-7}
### to double-check total counts as reported in article
### meta-analysis using peto's one-step method
res <- rma.peto(ai=ai, n1i=n1i, ci=ci, n2i=n2i, data=dat, subset=(table==tab))
medicine, cardiology, odds ratios, peto's method