netgraph: Generic function for network graphs

View source: R/netgraph.R

netgraphR Documentation

Generic function for network graphs

Description

Generic function for network graphs

Usage

netgraph(x, ...)

Arguments

x

An R object.

...

Additional arguments.

Details

For more details, look at the following functions to generate network graphs:

  • netgraph.netmeta

  • netgraph.netimpact

  • netgraph.netconnection

  • netgraph.netcomb

  • netgraph.discomb

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

dat.woods2010

Examples

data(smokingcessation)

# Transform data from arm-based format to contrast-based format
#
pw1 <- pairwise(list(treat1, treat2, treat3),
  event = list(event1, event2, event3), n = list(n1, n2, n3),
  data = smokingcessation, sm = "OR")

# Conduct random effects network meta-analysis
#
net1 <- netmeta(pw1, common = FALSE)

# Network graph with default settings
#
netgraph(net1)


data(Senn2013)

# Network graphs with default settings
#
net2 <- netmeta(TE, seTE, treat1, treat2, studlab,
  data = Senn2013, sm = "MD", reference = "plac")
netgraph(net2)
#
pw3 <- pairwise(treatment, event = r, n = N,
  studlab = author, data = dat.woods2010, sm = "OR")
net3 <- netmeta(pw3)
netgraph(net3)

# Network graph with number of participants for each treatment arm
#
netgraph(net3, labels = paste0(trts, " (n=", n.trts, ")"))



netmeta documentation built on April 3, 2025, 6:12 p.m.