netgraph.crossnma {crossnma}  R Documentation 
Create a network plot of the cross network metaanalysis or metaregression
## S3 method for class 'crossnma'
netgraph(x, ...)
x 
An object produced by 
... 
... Additional arguments (passed on to

A data frame containing the following columns:
labels 
Treatment labels. 
seq 
Sequence of treatment labels. 
xpos 
Position of treatment / edge on xaxis. 
ypos 
Position of treatment / edge on yaxis. 
zpos 
Position of treatment / edge on zaxis (for 3D plots). 
xpos.labels 
Position of treatment labels on xaxis (for 2D plots). 
ypos.labels 
Position of treatment labels on yaxis (for 2D plots). 
adj.x 
Adjustment for treatment label on xaxis. 
adj.y 
Adjustment for treatment label on yaxis. 
adj.z 
Adjustment for treatment label on zaxis (for 3D plots). 
Tasnim Hamza tasnim.hamza@ispm.unibe.ch
# We conduct a network metaanalysis assuming a randomeffects
# model.
# The data comes from randomizedcontrolled trials and
# nonrandomized studies (combined naively)
head(ipddata) # participantlevel data
head(stddata) # studylevel data
# Create a JAGS model
mod < crossnma.model(treat, id, relapse, n, design,
prt.data = ipddata, std.data = stddata,
reference = "A", trt.effect = "random", method.bias = "naive")
# Fit JAGS model
# (suppress warning 'Adaptation incomplete' due to n.adapt = 20)
fit <
suppressWarnings(crossnma(mod, n.adapt = 20,
n.iter = 50, thin = 1, n.chains = 3))
# Create network plot
netgraph(fit)