Learn R Programming

netmeta (version 3.1-1)

smokingcessation: Network meta-analysis of interventions for smoking cessation

Description

Network meta-analysis comparing the effects of a number of interventions for smoking cessation.

These data are used as an example in Dias et al. (2013), page 651.

Arguments

Format

A data frame with the following columns:

event1number of individuals with successful smoking cessation in arm 1
n1number of individuals in arm 1
event2number of individuals with successful smoking cessation in arm 2
n2number of individuals in arm 2
event3number of individuals with successful smoking cessation in arm 3
n3number of individuals in arm 3
treat1treatment 1
treat2treatment 2
treat3treatment 3

See Also

pairwise, metabin, netmeta, netgraph.netmeta

Examples

Run this code
data(smokingcessation)

# Transform data from 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.
#
pw1 <- pairwise(list(treat1, treat2, treat3),
  event = list(event1, event2, event3), n = list(n1, n2, n3),
  data = smokingcessation, sm = "OR")
pw1

# Conduct network meta-analysis
#
net1 <- netmeta(pw1)
net1

# Draw network graph
#
netgraph(net1, points = TRUE, cex.points = 3, cex = 1.25)
tname <- c("No intervention", "Self-help",
  "Individual counselling", "Group counselling")
netgraph(net1, points = TRUE, cex.points = 3, cex = 1.25, labels = tname)

Run the code above in your browser using DataLab