#' Network meta-analysis for chronic obstructive pulmonary disease
#'
#' @description
#' Network meta-analysis comparing inhaled medications in patients
#' with chronic obstructive pulmonary disease.
#'
#' @name Dong2013
#'
#' @docType data
#'
#' @format
#' A data frame with the following columns:
#' \tabular{rl}{
#' \bold{\emph{id}}\tab study ID \cr
#' \bold{\emph{treatment}}\tab treatment \cr
#' \bold{\emph{death}}\tab mortality \cr
#' \bold{\emph{randomized}}\tab number of individuals in treatment arm
#' }
#'
#' @seealso \code{\link{pairwise}}, \code{\link{metabin}},
#' \code{\link{netmetabin}}
#'
#' @source
#' Dong Y-H, Lin H-H, Shau W-Y, Wu Y-C, Chang C-H, Lai M-S (2013):
#' Comparative safety of inhaled medications in patients with chronic
#' obstructive pulmonary disease: systematic review and mixed
#' treatment comparison meta-analysis of randomised controlled trials.
#' \emph{Thorax},
#' \bold{68}, 48--56
#'
#' @keywords datasets
#'
#' @examples
#' data(Dong2013)
#'
#' # Only consider first ten studies (to reduce runtime of example)
#' #
#' first10 <- subset(Dong2013, id <= 10)
#'
#' # Transform data from long arm-based format to contrast-based
#' # format. Argument 'sm' has to be used for odds ratio as summary
#' # measure; by default the risk ratio is used in the metabin
#' # function called internally.
#' #
#' p1 <- pairwise(treatment, death, randomized, studlab = id,
#' data = first10, sm = "OR")
#'
#' # Conduct Mantel-Haenszel network meta-analysis
#' #
#' netmetabin(p1, ref = "plac")
#'
#' \dontrun{
#' # Conduct Mantel-Haenszel network meta-analysis for the whole
#' # dataset
#' #
#' p2 <- pairwise(treatment, death, randomized, studlab = id,
#' data = Dong2013, sm = "OR")
#' netmetabin(p2, ref = "plac")
#' }
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.