netgraph | R Documentation |
Generic function for network graphs
netgraph(x, ...)
x |
An R object. |
... |
Additional arguments. |
For more details, look at the following functions to generate network graphs:
netgraph.netmeta
netgraph.netimpact
netgraph.netconnection
netgraph.netcomb
netgraph.discomb
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
data(smokingcessation)
# Transform data from arm-based format to contrast-based format
#
p1 <- 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(p1, common = FALSE)
# Network graph with default settings
#
netgraph(net1)
## Not run:
data(Senn2013)
# Generation of an object of class 'netmeta' with reference
# treatment 'plac'
#
net2 <- netmeta(TE, seTE, treat1, treat2, studlab,
data = Senn2013, sm = "MD", reference = "plac")
# Network graph with default settings
#
netgraph(net2)
data(Woods2010)
p3 <- pairwise(treatment, event = r, n = N,
studlab = author, data = Woods2010, sm = "OR")
net3 <- netmeta(p3)
# Network graph with default settings
#
netgraph(net3)
# Network graph with
# - number of studies for each pairwise comparison and
# - number of participants for each treatment arm
#
netgraph(net3, number.of.studies = TRUE,
labels = paste0(trts, " (n=", n.trts, ")"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.